Skip to content

Commit 2744d9f

Browse files
committed
Fix missing dependencies
1 parent 587205b commit 2744d9f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

diracx-client/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ classifiers = [
1212
"Topic :: Scientific/Engineering",
1313
"Topic :: System :: Distributed Computing",
1414
]
15-
dependencies = ["azure-core", "diracx-core", "isodate", "httpx"]
15+
dependencies = ["azure-core", "diracx-core", "isodate", "httpx", "pyjwt"]
1616
dynamic = ["version"]
1717

1818
[project.optional-dependencies]

diracx-db/src/diracx/db/os/job_parameters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from DIRAC.Core.Utilities import TimeUtilities
3+
from datetime import UTC, datetime
44

55
from diracx.db.os.utils import BaseOSDB
66

@@ -31,7 +31,7 @@ def index_name(self, vo, doc_id: int) -> str:
3131
def upsert(self, vo, doc_id, document):
3232
document = {
3333
"JobID": doc_id,
34-
"timestamp": TimeUtilities.toEpochMilliSeconds(),
34+
"timestamp": int(datetime.now(tz=UTC).timestamp() * 1000),
3535
**document,
3636
}
3737
return super().upsert(vo, doc_id, document)

diracx-logic/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ classifiers = [
1414
]
1515
dependencies = [
1616
"cachetools",
17-
"dirac",
17+
"dirac >=9.0.0a0",
1818
"diracx-core",
1919
"diracx-db",
2020
"pydantic >=2.10",

0 commit comments

Comments
 (0)