Skip to content

Upgrade to dbos 3 - #685

Merged
czpython merged 1 commit into
mainfrom
ksocha/dru-628-upgrade-to-dbos-3
Oct 3, 2026
Merged

czpython merged 1 commit into
mainfrom
ksocha/dru-628-upgrade-to-dbos-3

Conversation

@chaosk

@chaosk chaosk commented Sep 21, 2026 •

Copy link
Copy Markdown
Collaborator

Follow the DBOS Python 3.0 upgrade: queues persist in the system database and must be registered after launch, so Queue() at import is gone. Depend on dbos>=3.2,<4.

  • Register druks, druks_tasks, druks_chat_pauses, and druks_notifications with register_queue_async after DBOS.launch() (launch already runs on the serving loop).
  • Enqueue with DBOS.enqueue_workflow_async.
  • Drop application_database_url; the system URL already points at the app database.
  • Replace the @DBOS.scheduled task ticks with apply_schedules after launch. A task's every= stays a fixed UTC cadence; workflow schedules keep the installation timezone.

Do not run 2.x and 3.x processes against the same database at once: 3.x can recover 2.x workflows, not the reverse.

@chaosk
chaosk requested a review from czpython as a code owner September 21, 2026 11:10
@czpython
czpython force-pushed the ksocha/dru-628-upgrade-to-dbos-3 branch 2 times, most recently from d7b9da7 to 9c47130 Compare October 3, 2026 09:46
DBOS 3.0 removed in-memory Queue() and @DBOS.scheduled; register queues after launch so a PyPI install can load the pytest plugin again.

Co-authored-by: Cursor <cursoragent@cursor.com>
@czpython
czpython force-pushed the ksocha/dru-628-upgrade-to-dbos-3 branch from 9c47130 to 3f31ead Compare October 3, 2026 09:53
@czpython
czpython merged commit bb21257 into main Oct 3, 2026
3 checks passed
@czpython
czpython deleted the ksocha/dru-628-upgrade-to-dbos-3 branch October 3, 2026 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants