threefoldtecharchive / jumpscaleX_core

Apache License 2.0
1 stars 6 forks source link

remove data consistency issues in myworkers [development_fixes] #323

Closed despiegk closed 4 years ago

despiegk commented 4 years ago

issue is that when you restart e.g. a container jobmodel can be empty if redis BCDB but queue on redis maybe not

todo

waleedhammam commented 4 years ago

Commits: https://github.com/threefoldtech/jumpscaleX_core/commit/79f1e602448f9485a9e5ef6874e3e977b279f9d7, https://github.com/threefoldtech/jumpscaleX_threebot/commit/e69c2ef4d283812d86b98c7455bad6a08c5069d0

todo:

waleedhammam commented 4 years ago

Commits: https://github.com/threefoldtech/jumpscaleX_threebot/commit/c08dc26c34c81f037ee762186ebabbfe24799b75, https://github.com/threefoldtech/jumpscaleX_threebot/commit/48a2b39414f6d1b73d2a76a28fa39f442b7a0efd

Threebotserver should be started then:

Example usage:

package = j.tools.threebot_packages.get("zerobot.myjobs_ui")
package.actors.myjobs.start()
package = j.tools.threebot_packages.get("zerobot.myjobs_ui")
package.actors.myjobs.stop()

or in the threebot server shell

j.threebot.packages.zerobot.myjobs_ui.actors.myjobs.stop()
siddiquagig commented 4 years ago

I am getting this error when starting threebot server on development_myjobs

image

My code is latest too

xmonader commented 4 years ago

@siddiquagig please check on development_fixes

waleedhammam commented 4 years ago

Starting my jobs is through 3bot server not and not using actors anymore.

siddiquagig commented 4 years ago

Verified

Steps: Start threebot server, make sure the workers are spawned without any problems