File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
tests/test_immediate_submit_without_shared_fs Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,13 @@ async def execute_single_job(jobid, jobscript):
7979 proc = await asyncio .create_subprocess_shell (jobscript )
8080 stdout , stderr = await proc .communicate ()
8181 if proc .returncode != 0 :
82- logging .critical (stdout )
83- logging .critical (stderr )
84- raise RuntimeError (f"Falied executing job { jobid } " )
82+ logging .error (f"Job { jobid } failed with return code { proc .returncode } " )
83+ if stdout :
84+ logging .debug (f"Job { jobid } stdout: { stdout .decode ()[:500 ]} ..." )
85+ if stderr :
86+ logging .error (f"Job { jobid } stderr: { stderr .decode ()[:500 ]} ..." )
87+
88+ raise RuntimeError (f"Faied executing job { jobid } " )
8589
8690 async with db_lock :
8791 with sqlite3 .connect (DATABASE_FILE , timeout = 30 ) as db :
You can’t perform that action at this time.
0 commit comments