Skip to content

Commit 30e1009

Browse files
authored
Upgrade DBOS to 2.30 (#318)
The 2.29 partitioned-queue batch sits on the partition_by=subject_id hot path: better partition-key indexes, index bug fixes, optimized partition query, and batch dequeue. 2.30 adds optimized queue dispatch on top, plus recovery idempotence and final-result writes only while PENDING. 2.29 turns the admin server off by default and deprecates the knob, so the explicit run_admin_server override goes away.
1 parent 00cab55 commit 30e1009

3 files changed

Lines changed: 9 additions & 47 deletions

File tree

‎backend/druks/durable/engine.py‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def init_dbos() -> None:
4949
"application_database_url": url,
5050
"system_database_url": url,
5151
"dbos_system_schema": DBOS_SYSTEM_SCHEMA,
52-
"run_admin_server": False,
5352
"log_level": settings.log_level,
5453
}
5554
DBOS(config=config)
@@ -105,10 +104,9 @@ def shutdown() -> None:
105104
# lifespan with app.state.settings pre-set skips the branch that launches it
106105
# — so the lifespan can call shutdown() unconditionally.
107106
global _initialized
108-
if not _initialized:
109-
return
110-
DBOS.destroy()
111-
_initialized = False
107+
if _initialized:
108+
DBOS.destroy()
109+
_initialized = False
112110

113111

114112
def configure_engine(engine) -> None:

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dependencies = [
3131
"uuid-utils>=0.16.0",
3232
"psycopg[binary]>=3.2",
3333
"alembic>=1.13",
34-
"dbos>=2.26",
34+
"dbos>=2.30",
3535
"croniter>=6.2.2",
3636
"redis>=8",
3737
"tomlkit>=0.13",

‎uv.lock‎

Lines changed: 5 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)