File tree 1 file changed +4
-1
lines changed
services/storage/src/simcore_service_storage/modules/celery
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
import logging
2
+ import ssl
2
3
3
4
from celery import Celery # type: ignore[import-untyped]
4
5
from settings_library .celery import CelerySettings
@@ -16,12 +17,14 @@ def create_app(celery_settings: CelerySettings) -> Celery:
16
17
RedisDatabase .CELERY_TASKS ,
17
18
),
18
19
)
20
+ app .conf .broker_connection_retry_on_startup = True
21
+ # NOTE: disable SSL cert validation (https://github.com/ITISFoundation/osparc-simcore/pull/7407)
22
+ app .conf .redis_backend_use_ssl = {"ssl_cert_reqs" : ssl .CERT_NONE }
19
23
app .conf .result_expires = celery_settings .CELERY_RESULT_EXPIRES
20
24
app .conf .result_extended = True # original args are included in the results
21
25
app .conf .result_serializer = "json"
22
26
app .conf .task_send_sent_event = True
23
27
app .conf .task_track_started = True
24
28
app .conf .worker_send_task_events = True # enable tasks monitoring
25
- app .conf .broker_connection_retry_on_startup = True
26
29
27
30
return app
You can’t perform that action at this time.
0 commit comments