Skip to content

Commit 70bc254

Browse files
committed
chore: ok, only thinkgs in diracx-tasks/src/diracx/tasks/task_run.py are left
1 parent af95f95 commit 70bc254

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

diracx-logic/src/diracx/logic/__main__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,15 @@ async def delete_jwk(args):
9393
async def cleanup_authdb(args):
9494
"""Maintain AuthDB partitions and remove expired flows."""
9595
logger.info("Maintaining AuthDB partitions and removing expired flows")
96-
import os
9796

98-
from diracx.core.settings import AuthSettings
97+
from diracx.core.settings import AuthSettings, FactorySettings
9998
from diracx.db.sql import AuthDB
10099
from diracx.logic.auth.management import cleanup_expired_data
101100

102101
settings = AuthSettings()
103-
db_url = os.environ["DIRACX_DB_URL_AUTHDB"]
102+
factory_settings = FactorySettings()
103+
db_url = factory_settings.sql_dbs.AuthDB
104+
104105
db = AuthDB(db_url)
105106
async with db.engine_context():
106107
async with db:

0 commit comments

Comments
 (0)