Isolate cluster-dependent Celery startup

Avoids calling unworkable functions when generating API docs etc. by
isolating them into a Celery startup function called by Daemon.py.

Also update to Celery 4+ settings format.
This commit is contained in:
2023-11-16 20:25:28 -05:00
parent 9885914abd
commit b66cfb07d8
2 changed files with 60 additions and 59 deletions

View File

@ -155,6 +155,7 @@ def entrypoint():
print("|----------------------------------------------------------|")
print("")
pvc_api.celery_startup()
pvc_api.app.run(
config["listen_address"],
config["listen_port"],