Skip to content

Commit 67ef820

Browse files
committed
print more info in bg cb
1 parent 5b57769 commit 67ef820

File tree

1 file changed

+4
-0
lines changed
  • tests/integration/background_callback

1 file changed

+4
-0
lines changed

tests/integration/background_callback/utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import sys
23
import shutil
34
import subprocess
45
import tempfile
@@ -90,6 +91,8 @@ def setup_background_callback_app(manager_name, app_name):
9091

9192
worker = subprocess.Popen(
9293
[
94+
sys.executable,
95+
"-m",
9396
"celery",
9497
"-A",
9598
f"tests.integration.background_callback.{app_name}:handle",
@@ -113,6 +116,7 @@ def setup_background_callback_app(manager_name, app_name):
113116
lines.append(line)
114117
else:
115118
error = "\n".join(lines)
119+
error += f"\nPath: {sys.path}"
116120
raise RuntimeError(f"celery failed to start: {error}")
117121

118122
try:

0 commit comments

Comments
 (0)