Skip to content

Commit

Permalink
Merge pull request DIRACGrid#7910 from DIRACGridBot/cherry-pick-2-9f6…
Browse files Browse the repository at this point in the history
…126afb-integration

[sweep:integration] fix (Transformation): use UTC to calculate older in export_getTasksToSubmit
  • Loading branch information
fstagni authored Dec 2, 2024
2 parents e4753a8 + 68e7d4c commit 20a6b36
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def export_getTasksToSubmit(self, transName, numTasks, site=""):
submitDict = {}

# Apply a delay to avoid race conditions
older = datetime.datetime.now() - datetime.timedelta(seconds=30)
older = datetime.datetime.utcnow() - datetime.timedelta(seconds=30)

# Retrieve tasks that are ready for submission
res = self.transformationDB.getTasksForSubmission(
Expand Down

0 comments on commit 20a6b36

Please sign in to comment.