diracx-db 0.0.1a45__py3-none-any.whl → 0.0.1a46__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- diracx/db/__main__.py +0 -1
- diracx/db/sql/job_logging/db.py +0 -1
- diracx/db/sql/pilot_agents/db.py +0 -1
- diracx/db/sql/sandbox_metadata/db.py +5 -1
- {diracx_db-0.0.1a45.dist-info → diracx_db-0.0.1a46.dist-info}/METADATA +1 -1
- {diracx_db-0.0.1a45.dist-info → diracx_db-0.0.1a46.dist-info}/RECORD +8 -8
- {diracx_db-0.0.1a45.dist-info → diracx_db-0.0.1a46.dist-info}/WHEEL +0 -0
- {diracx_db-0.0.1a45.dist-info → diracx_db-0.0.1a46.dist-info}/entry_points.txt +0 -0
diracx/db/__main__.py
CHANGED
@@ -31,7 +31,6 @@ async def init_sql():
|
|
31
31
|
from diracx.db.sql.utils import BaseSQLDB
|
32
32
|
|
33
33
|
for db_name, db_url in BaseSQLDB.available_urls().items():
|
34
|
-
|
35
34
|
logger.info("Initialising %s", db_name)
|
36
35
|
db = BaseSQLDB.available_implementations(db_name)[0](db_url)
|
37
36
|
async with db.engine_context():
|
diracx/db/sql/job_logging/db.py
CHANGED
diracx/db/sql/pilot_agents/db.py
CHANGED
@@ -13,6 +13,7 @@ from sqlalchemy import (
|
|
13
13
|
Table,
|
14
14
|
and_,
|
15
15
|
delete,
|
16
|
+
exists,
|
16
17
|
insert,
|
17
18
|
literal,
|
18
19
|
or_,
|
@@ -236,7 +237,10 @@ class SandboxMetadataDB(BaseSQLDB):
|
|
236
237
|
"""
|
237
238
|
conditions = [
|
238
239
|
# If it has assigned to a job but is no longer mapped it can be removed
|
239
|
-
|
240
|
+
and_(
|
241
|
+
SandBoxes.Assigned,
|
242
|
+
~exists().where(SBEntityMapping.SBId == SandBoxes.SBId),
|
243
|
+
),
|
240
244
|
# If the sandbox is still unassigned after 15 days, remove it
|
241
245
|
and_(~SandBoxes.Assigned, days_since(SandBoxes.LastAccessTime) >= 15),
|
242
246
|
]
|
@@ -1,5 +1,5 @@
|
|
1
1
|
diracx/db/__init__.py,sha256=2oeUeVwZq53bo_ZOflEYZsBn7tcR5Tzb2AIu0TAWELM,109
|
2
|
-
diracx/db/__main__.py,sha256=
|
2
|
+
diracx/db/__main__.py,sha256=3yaUP1ig-yaPSQM4wy6CtSXXHivQg-hIz2FeBt7joBc,1714
|
3
3
|
diracx/db/exceptions.py,sha256=1nn-SZLG-nQwkxbvHjZqXhE5ouzWj1f3qhSda2B4ZEg,83
|
4
4
|
diracx/db/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
diracx/db/os/__init__.py,sha256=IZr6z6SefrRvuC8sTC4RmB3_wwOyEt1GzpDuwSMH8O4,112
|
@@ -16,13 +16,13 @@ diracx/db/sql/job/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
16
16
|
diracx/db/sql/job/db.py,sha256=TnEc0fckiuMJAZg2v1_Pbwfn7kDPDam6TXp9ySuiddk,11910
|
17
17
|
diracx/db/sql/job/schema.py,sha256=eFgZshe6NEzOM2qI0HI9Y3abrqDMoQIwa9L0vZugHcU,5431
|
18
18
|
diracx/db/sql/job_logging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
19
|
-
diracx/db/sql/job_logging/db.py,sha256=
|
19
|
+
diracx/db/sql/job_logging/db.py,sha256=hyklARuEj3R1sSJ8UaObRprmsRx7RjbKAcbfgT9BwRg,5496
|
20
20
|
diracx/db/sql/job_logging/schema.py,sha256=k6uBw-RHAcJ5GEleNpiWoXEJBhCiNG-y4xAgBKHZjjM,2524
|
21
21
|
diracx/db/sql/pilot_agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
|
-
diracx/db/sql/pilot_agents/db.py,sha256=
|
22
|
+
diracx/db/sql/pilot_agents/db.py,sha256=6CQ0QGV4NhsGKVCygEtE4kmIjT89xJwrIMuYZTslWFE,1231
|
23
23
|
diracx/db/sql/pilot_agents/schema.py,sha256=KeWnFSpYOTrT3-_rOCFjbjNnPNXKnUZiJVsu4vv5U2U,2149
|
24
24
|
diracx/db/sql/sandbox_metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
25
|
-
diracx/db/sql/sandbox_metadata/db.py,sha256=
|
25
|
+
diracx/db/sql/sandbox_metadata/db.py,sha256=FtyPx6GAGJAH-lmuw8PQj6_KGHG6t3AC3-E9uWf-JNs,10236
|
26
26
|
diracx/db/sql/sandbox_metadata/schema.py,sha256=V5gV2PHwzTbBz_th9ribLfE7Lqk8YGemDmvqq4jWQJ4,1530
|
27
27
|
diracx/db/sql/task_queue/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
28
28
|
diracx/db/sql/task_queue/db.py,sha256=2qul1D2tX2uCI92N591WK5xWHakG0pNibzDwKQ7W-I8,6246
|
@@ -31,7 +31,7 @@ diracx/db/sql/utils/__init__.py,sha256=QkvpqBuIAgkAOywAssYzdxSzUQVZlSUumK7mPxotX
|
|
31
31
|
diracx/db/sql/utils/base.py,sha256=HYQuX16mgg9LAMtAEmbTmJFIN0OSMe1Hcb57dtl7LCc,12367
|
32
32
|
diracx/db/sql/utils/functions.py,sha256=_E4tc9Gti6LuSh7QEyoqPJSvCuByVqvRenOXCzxsulE,4014
|
33
33
|
diracx/db/sql/utils/types.py,sha256=yU-tXsu6hFGPsr9ba1n3ZjGPnHQI_06lbpkTeDCWJtg,1287
|
34
|
-
diracx_db-0.0.
|
35
|
-
diracx_db-0.0.
|
36
|
-
diracx_db-0.0.
|
37
|
-
diracx_db-0.0.
|
34
|
+
diracx_db-0.0.1a46.dist-info/METADATA,sha256=hu6BtBuYz30tuMO8Z40gyZhSf53QzqTKO45ryw6tTL4,675
|
35
|
+
diracx_db-0.0.1a46.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
36
|
+
diracx_db-0.0.1a46.dist-info/entry_points.txt,sha256=UPqhLvb9gui0kOyWeI_edtefcrHToZmQt1p76vIwujo,317
|
37
|
+
diracx_db-0.0.1a46.dist-info/RECORD,,
|
File without changes
|
File without changes
|