Commit 9794c8df authored by MERCIER Michael's avatar MERCIER Michael
Browse files

[code] try to fix metadata set error on resubmit

parent 03f5d1ae
......@@ -353,7 +353,7 @@ class Batsim(object):
full id in "parent_job" and the number of resubmissions in "nb_resubmit".
"""
if job.metadata is None:
if job.metadata is None or not "nb_resubmit" in metadata:
metadata = {"parent_job" : job.id, "nb_resubmit": 1}
else:
metadata = deepcopy(job.metadata)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment