Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions backend/druks/durable/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ def init_dbos() -> None:
"application_database_url": url,
"system_database_url": url,
"dbos_system_schema": DBOS_SYSTEM_SCHEMA,
"run_admin_server": False,
"log_level": settings.log_level,
}
DBOS(config=config)
Expand Down Expand Up @@ -105,10 +104,9 @@ def shutdown() -> None:
# lifespan with app.state.settings pre-set skips the branch that launches it
# — so the lifespan can call shutdown() unconditionally.
global _initialized
if not _initialized:
return
DBOS.destroy()
_initialized = False
if _initialized:
DBOS.destroy()
_initialized = False


def configure_engine(engine) -> None:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies = [
"uuid-utils>=0.16.0",
"psycopg[binary]>=3.2",
"alembic>=1.13",
"dbos>=2.26",
"dbos>=2.30",
"croniter>=6.2.2",
"redis>=8",
"tomlkit>=0.13",
Expand Down
46 changes: 5 additions & 41 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.