We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 18960af + c69db46 commit 835da28Copy full SHA for 835da28
tests/integration/long_callback/utils.py
@@ -94,14 +94,19 @@ def setup_long_callback_app(manager_name, app_name):
94
"2",
95
"--loglevel=info",
96
],
97
+ encoding="utf8",
98
preexec_fn=os.setpgrp,
99
stderr=subprocess.PIPE,
100
)
101
# Wait for the worker to be ready, if you cancel before it is ready, the job
102
# will still be queued.
103
+ lines = []
104
for line in iter(worker.stderr.readline, ""):
- if "ready" in line.decode():
105
+ if "ready" in line:
106
break
107
+ lines.append(line)
108
+ else:
109
+ raise RuntimeError("celery failed to start: " + {"\n".join(lines)})
110
111
try:
112
yield import_app(f"tests.integration.long_callback.{app_name}")
0 commit comments