Troubleshooting documentation has been updated to address stalled task execution errors specifically affecting Prisma 7.x users. Developers running intensive database operations can now identify why their tasks fail and implement a recommended pattern to keep their workloads running.
Because Prisma 7.x runs query compilation and caching on the main thread, heavy or repeated database calls can inadvertently block the Node.js event loop. When the event loop is blocked for too long, the system fails to send , triggering a stalled execution error.
To prevent this, the documentation now recommends yielding control back to the event loop during loops or sequential queries. Here is how you'd yield the event loop:
1await heartbeats.yield();