File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
tests/integration/background_callback Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def get_background_callback_manager():
35
35
Get the long callback mangaer configured by environment variables
36
36
"""
37
37
if os .environ .get ("LONG_CALLBACK_MANAGER" , None ) == "celery" :
38
- from dash .background_callback import CeleryLongCallbackManager
38
+ from dash .background_callback import CeleryManager
39
39
from celery import Celery
40
40
import redis
41
41
@@ -44,7 +44,7 @@ def get_background_callback_manager():
44
44
broker = os .environ .get ("CELERY_BROKER" ),
45
45
backend = os .environ .get ("CELERY_BACKEND" ),
46
46
)
47
- background_callback_manager = CeleryLongCallbackManager (celery_app )
47
+ background_callback_manager = CeleryManager (celery_app )
48
48
redis_conn = redis .Redis (host = "localhost" , port = 6379 , db = 1 )
49
49
background_callback_manager .test_lock = redis_conn .lock ("test-lock" )
50
50
elif os .environ .get ("LONG_CALLBACK_MANAGER" , None ) == "diskcache" :
@@ -112,7 +112,8 @@ def setup_background_callback_app(manager_name, app_name):
112
112
break
113
113
lines .append (line )
114
114
else :
115
- raise RuntimeError ("celery failed to start: " + {"\n " .join (lines )})
115
+ error = "\n " .join (lines )
116
+ raise RuntimeError (f"celery failed to start: { error } " )
116
117
117
118
try :
118
119
yield import_app (f"tests.integration.background_callback.{ app_name } " )
You can’t perform that action at this time.
0 commit comments