Skip to content

Commit

Permalink
fix(JobStateUpdate): for staging, make sure the jobID is an integer
Browse files Browse the repository at this point in the history
If jobID is not an integer, we never get a correct result, because the dictionary key is converted to an int, and then the string is not found and we do not get the attribute value back.
  • Loading branch information
andresailer committed Dec 20, 2023
1 parent 200ec47 commit 5187a9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def export_updateJobFromStager(cls, jobID, status):
infoStr = None
trials = 10
for i in range(trials):
result = cls.jobDB.getJobAttributes(jobID, ["Status"])
result = cls.jobDB.getJobAttributes(int(jobID), ["Status"])
if not result["OK"]:
return result
if not result["Value"]:
Expand Down

0 comments on commit 5187a9c

Please sign in to comment.