We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31d1db3 commit 429cd4bCopy full SHA for 429cd4b
src/config/container.py
@@ -79,12 +79,12 @@ def on_create_transaction_context(**kwargs):
79
return TransactionContext(dependency_provider)
80
81
@application.on_enter_transaction_context
82
- async def on_enter_transaction_context(ctx: TransactionContext):
+ def on_enter_transaction_context(ctx: TransactionContext):
83
ctx.set_dependencies(publish=ctx.publish)
84
logger.debug("Entering transaction")
85
86
@application.on_exit_transaction_context
87
- async def on_exit_transaction_context(
+ def on_exit_transaction_context(
88
ctx: TransactionContext, exception: Optional[Exception] = None
89
):
90
session = ctx["db_session"]
0 commit comments