Skip to content

Commit d1936eb

Browse files
fix: settings check
1 parent 8532eab commit d1936eb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

services/storage/src/simcore_service_storage/core/application.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,9 @@ def create_app(settings: ApplicationSettings) -> FastAPI: # noqa: C901
9090
setup_s3(app)
9191
setup_client_session(app)
9292

93-
if not settings.STORAGE_WORKER_MODE:
93+
if settings.STORAGE_CELERY and not settings.STORAGE_WORKER_MODE:
9494
setup_rabbitmq(app)
9595

96-
assert settings.STORAGE_CELERY # nosec
9796
setup_task_manager(app, celery_settings=settings.STORAGE_CELERY)
9897

9998
setup_rpc_routes(app)

0 commit comments

Comments
 (0)