Import classad2 as classad
job_ad = os.environ.get('_CONDOR_JOB_AD')
with open(job_ad, 'r') as ft:
ca = classad.parseOne(ft)
toe = ca[âToEâ]
if toe[âExitBySignalâ]:
signal = toe[âExitSignalâ]
else:
code = toe[âExitCodeâ]
Now ToE is not any longer in the job ads. In the submitter is not an issue, as I can find the same information in TerminatedNormally, ReturnValue and TerminatedBySignal ads.
The problem is at the PostScript, that now at the _CONDOR_JOB_AD I only find:
ExitBySignal = false
ExitStatus = 0
Independently on how the docker container has finished. It looks like the file is created before the job starts and not updated anymore after the job ends.
Is the .job.ad file not going to be updated anymore after the job execution?
Is there a better way to recover the exit status of the container (or the job in case of vanilla universe) in the PostScript?
Thanks!
AndrÃs Ayala
EUMETSAT Data Processing System Engineer
Any email message from EUMETSAT is sent in good faith but shall neither be binding nor construed as constituting a commitment by EUMETSAT, except where provided for in a written agreement or contract or if explicitly stated in the email. Please note that any views or opinions presented in this email are solely those of the sender and do not necessarily represent those of EUMETSAT. This message and any attachments are intended for the sole use of the addressee(s) and may contain confidential and privileged information. Any unauthorised use, disclosure, dissemination or distribution (in whole or in part) of its contents is not permitted. If you received this message in error, please notify the sender and delete it from your system.
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
The archives can be found at: https://www-auth.cs.wisc.edu/lists/htcondor-users/