You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running with --standalone, conda-store spins up a celery worker subprocess. That subprocess is not terminated when you Ctrl-C the main process. This needs to be done in a way that would work on Linux, Windows, macOS.
# start worker if in standalone modeifself.standalone:
importmultiprocessingmultiprocessing.set_start_method("spawn")
fromconda_store_server.worker.appimportCondaStoreWorkerprocess=multiprocessing.Process(target=CondaStoreWorker.launch_instance)
process.start()
If we do want it, it's possible to forcibly control-c out of the standalone server in a way that leaves the worker processes intact. See Revisit the implementation of --standalone as well as the assumptions made #513 (comment). However, I've also noticed that this is somewhat of an issue with celery itself, even when the worker is run separately, that cancellation doesn't work very smoothly. The difference is that when workers are run separately, the process doesn't end until the workers are actually shutdown. Not clear how important this issue is. It comes up during development, but I don't know if it comes up in deployment.
Value and/or benefit
Improved UX.
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Context
When running with
--standalone
, conda-store spins up a celery worker subprocess. That subprocess is not terminated when you Ctrl-C the main process. This needs to be done in a way that would work on Linux, Windows, macOS.conda-store-server/conda_store_server/server/app.py
#513 (comment)
Value and/or benefit
Improved UX.
Anything else?
No response
The text was updated successfully, but these errors were encountered: