We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 390333f commit a4546cfCopy full SHA for a4546cf
components/job-orchestration/job_orchestration/garbage_collector/utils.py
@@ -3,7 +3,7 @@
3
import pathlib
4
import shutil
5
import time
6
-from datetime import datetime, UTC
+from datetime import datetime, timezone
7
from typing import List, Set
8
9
from bson import ObjectId
@@ -52,7 +52,7 @@ def get_expiry_epoch_secs(retention_minutes: int) -> int:
52
53
54
def get_oid_with_expiry_time(expiry_epoch_secs: int) -> ObjectId:
55
- return ObjectId.from_datetime(datetime.fromtimestamp(expiry_epoch_secs, tz=UTC))
+ return ObjectId.from_datetime(datetime.fromtimestamp(expiry_epoch_secs, tz=timezone.utc))
56
57
58
def execute_fs_deletion(fs_storage_config: FsStorage, deletion_candidate: str) -> None:
0 commit comments