Skip to content

Commit

Permalink
workaround to fix #8604 (#8612)
Browse files Browse the repository at this point in the history
  • Loading branch information
belforte authored Aug 12, 2024
1 parent c0315b4 commit 50c9d82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/python/TaskWorker/Actions/DagmanResubmitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ def executeInternal(self, *args, **kwargs): #pylint: disable=unused-argument
# files are in the directory resubmit_info in the schedd).
for adparam, taskparam in params.items():
if taskparam in ad:
schedd.edit(rootConst, adparam, ad.lookup(taskparam))
# repr() in the line below is a workaround for V2 bindings bug
# https://github.com/dmwm/CRABServer/issues/8604#issuecomment-2284346056
schedd.edit(rootConst, adparam, repr(ad.lookup(taskparam)))
elif task['resubmit_' + taskparam] is not None:
schedd.edit(rootConst, adparam, str(task['resubmit_' + taskparam]))
schedd.act(htcondor.JobAction.Hold, rootConst)
Expand Down

0 comments on commit 50c9d82

Please sign in to comment.