threefoldtecharchive / jumpscaleX_core

Apache License 2.0
1 stars 6 forks source link

Remove package from threebot server don't work unless server is restarted #149

Closed AhmedHanafy725 closed 4 years ago

AhmedHanafy725 commented 4 years ago

Steps:

1- Start threebot server.

cl = j.servers.threebot.local_start_default()

2- Add any package (alerta for example) and then reload.

cl.actors.package_manager.package_add("/sandbox/code/github/threefoldtech/jumpscaleX_threebot/ThreeBotPackages/alerta") 
cl.reload()

3- Remove this package and reload.

cl.actors.package_manager.package_delete("alerta")
cl.reload()

Expected result:

alerta should be removed.

Actual result:

alerta is still loaded. It is only removed if threebot server is stopped and started it again.

rkhamis commented 4 years ago

Pacakges should implement their uninstall function.

despiegk commented 4 years ago

I think an wait

RafyAmgadBenjamin commented 4 years ago

Fixed:

RafyAmgadBenjamin commented 4 years ago

verification steps:

john-kheir commented 4 years ago

Verified