Skip to content
Discussion options

You must be logged in to vote

As for the event never being triggered, that appears to be because …

site-packages/sqlalchemy/orm/events.py:887: RuntimeWarning: coroutine 'async_main.<locals>.before_insert' was never awaited
  fn(*arg, **kw)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

… i.e., your async def was not awaited. Just using def for the listener does get us into the routine (verified by adding a breakpoint() line in the function and getting dropped into pdb).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@gordthompson
Comment options

Answer selected by mcostacurta-fulltruck
@mcostacurta-fulltruck
Comment options

@Fidel-C
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants