Skip to content

Commit 50983d3

Browse files
add assert
1 parent 115748e commit 50983d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def create_app(settings: ApplicationSettings) -> FastAPI: # noqa: C901
8787
if not settings.STORAGE_WORKER_MODE:
8888
setup_rabbitmq(app)
8989
setup_rpc_api_routes(app)
90+
91+
assert settings.STORAGE_CELERY # nosec
9092
setup_celery_client(app, celery_settings=settings.STORAGE_CELERY)
9193
setup_rest_api_long_running_tasks_for_uploads(app)
9294
setup_rest_api_routes(app, API_VTAG)

0 commit comments

Comments
 (0)