Skip to content

Commit

Permalink
Merge pull request #7909 from hmiyake/older_by_utc
Browse files Browse the repository at this point in the history
[v8.0] fix (Transformation): use UTC to calculate older in export_getTasksToSubmit
  • Loading branch information
fstagni authored Nov 25, 2024
2 parents cb84f65 + e6a425f commit 9f6126a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,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 9f6126a

Please sign in to comment.