Spaces:
Sleeping
Sleeping
Commit ·
0023a7b
1
Parent(s): e209aea
- .gitignore +0 -3
- run.py +2 -0
- spawn.py +4 -1
.gitignore
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
workspaces/
|
| 2 |
-
*.pyc
|
| 3 |
-
__pycache__/
|
|
|
|
|
|
|
|
|
|
|
|
run.py
CHANGED
|
@@ -61,6 +61,8 @@ def main():
|
|
| 61 |
data = json.loads(result.stdout)
|
| 62 |
except json.JSONDecodeError:
|
| 63 |
print(f"Error: JSON parse failed\n{result.stdout[-500:]}")
|
|
|
|
|
|
|
| 64 |
sys.exit(1)
|
| 65 |
|
| 66 |
if data.get("is_error"):
|
|
|
|
| 61 |
data = json.loads(result.stdout)
|
| 62 |
except json.JSONDecodeError:
|
| 63 |
print(f"Error: JSON parse failed\n{result.stdout[-500:]}")
|
| 64 |
+
print(f"stderr: {result.stderr[-500:]}")
|
| 65 |
+
print(f"returncode: {result.returncode}")
|
| 66 |
sys.exit(1)
|
| 67 |
|
| 68 |
if data.get("is_error"):
|
spawn.py
CHANGED
|
@@ -55,7 +55,10 @@ def main():
|
|
| 55 |
try:
|
| 56 |
data = json.loads(result.stdout)
|
| 57 |
except json.JSONDecodeError:
|
| 58 |
-
print(f"[spawn:{role}] error: JSON parse failed
|
|
|
|
|
|
|
|
|
|
| 59 |
sys.exit(1)
|
| 60 |
|
| 61 |
if data.get("is_error"):
|
|
|
|
| 55 |
try:
|
| 56 |
data = json.loads(result.stdout)
|
| 57 |
except json.JSONDecodeError:
|
| 58 |
+
print(f"[spawn:{role}] error: JSON parse failed")
|
| 59 |
+
print(f"[spawn:{role}] stdout: {result.stdout[-300:]}")
|
| 60 |
+
print(f"[spawn:{role}] stderr: {result.stderr[-300:]}")
|
| 61 |
+
print(f"[spawn:{role}] returncode: {result.returncode}")
|
| 62 |
sys.exit(1)
|
| 63 |
|
| 64 |
if data.get("is_error"):
|