Skip to content

A DBOS step runs async SQLAlchemy on the launch loop - #320

Closed
czpython wants to merge 1 commit into
mainfrom
eng-874-loop-test
Closed

A DBOS step runs async SQLAlchemy on the launch loop#320
czpython wants to merge 1 commit into
mainfrom
eng-874-loop-test

Conversation

@czpython

Copy link
Copy Markdown
Owner

DBOS submits async steps to the event loop it captured at launch(). This is the contract async database work will stand on, so a regression test now pins it: an AsyncSession write inside DBOS.run_step_async succeeds on the loop that was running at launch.

Teardown restores the DBOS registry to its pre-launch state — destroy() leaves it pointing at the dead launched instance, which breaks the next module that registers scheduled units. Also drops a stale _OWN_DATABASE_MODULES entry for a module that no longer exists.

🤖 Generated with Claude Code

@czpython

Copy link
Copy Markdown
Owner Author

Closing by owner decision: the loop-topology assumption is proven (test passed locally and in CI); we take the finding forward without a standing test and handle any dispatch change at deploy time.

@czpython czpython closed this Aug 24, 2026
@czpython
czpython deleted the eng-874-loop-test branch August 24, 2026 10:49
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.

1 participant