transaction hangs when doing async work in $extends
In our $allOperations hook in prisma.$extends, we are doing some work to send an SNS message (async, I think, so isn't bottlenecking the query) when a change happens on certain tables. Kind of a simple way to implement the new prisma table listener. The function handleModelChanged
This works fine unless I'm doing a transaction, but specifically, THIS type of transation.
This just hangs. I can do
And that works fine.
How can I tweak the handleModelChanged function so that it doesn't cause the problematic transcations to hang?
0 Replies