Closed sverhoeven closed 1 year ago
If job command exits non-zero then output.tar is not uploaded. but we want the stdout.txt and stderr.txt inside output.tar to debug error. also nice to get other output files inside output.tar. See https://github.com/DIRACGrid/DIRAC/blob/7df4ff26dd936eca8b30bdebcc78cd1509122de4/src/DIRAC/WorkloadManagementSystem/JobWrapper/JobWrapper.py#L820-L822
Possible fixes:
When returncode is non-zero then cat stderr.txt + stdout.txt to stderr so it ends up in jobstderr.txt. then when self.state(jobid) is failed then
Cons:
Pros:
Make it upload output.tat even when job is failed.
Instead of using OutputData in jdl. Con:
Echo command log to jobstdout.txt Pros:
Cons:
Went for option 7
Fixes #71
When a job submitted to the DIRAC scheduler fails then logs of it can be requested with
/job//{jobid}/stdout
and/job//{jobid}/stderr
endpoints.The input.tar and output.tar are now staged by job description language aka jdl