Skip to content

Commit 20a6b36

Browse files
authored
Merge pull request #7910 from DIRACGridBot/cherry-pick-2-9f6126afb-integration
[sweep:integration] fix (Transformation): use UTC to calculate older in export_getTasksToSubmit
2 parents e4753a8 + 68e7d4c commit 20a6b36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DIRAC/TransformationSystem/Service/TransformationManagerHandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def export_getTasksToSubmit(self, transName, numTasks, site=""):
412412
submitDict = {}
413413

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

417417
# Retrieve tasks that are ready for submission
418418
res = self.transformationDB.getTasksForSubmission(

0 commit comments

Comments
 (0)