zoomie
zoomie2w ago

Workpool OCC error

Using the workpool component and got the error shown below. An action is put on a workpool queue, with maxParallelism=1, when that action has been running for 9min but hasn't finished, it enqueues another action that finishes the job (i.e. a recursive action to get around the 10min action limit). Unfortunatly it looks like I get an OCC error (assuming this has bubbled up from postgres).
lib:enqueue
Documents read from or written to the "runStatus" table changed while this mutation was being run and on every subsequent retry. A call to "scheduled_job_mutation_success" changed the document with ID "js7562hqe947gg2yexy9yw14k97f2hwk". See https://docs.convex.dev/error#1


app:myFunc
Uncaught Error: {"code":"OptimisticConcurrencyControlFailure","message":"Documents read from or written to the \"runStatus\" table changed while this mutation was being run and on every subsequent retry. A call to \"scheduled_job_mutation_success\" changed the document with ID \"js7562hqe947gg2yexy9yw14k97f2hwk\". See https://docs.convex.dev/error#1"}
lib:enqueue
Documents read from or written to the "runStatus" table changed while this mutation was being run and on every subsequent retry. A call to "scheduled_job_mutation_success" changed the document with ID "js7562hqe947gg2yexy9yw14k97f2hwk". See https://docs.convex.dev/error#1


app:myFunc
Uncaught Error: {"code":"OptimisticConcurrencyControlFailure","message":"Documents read from or written to the \"runStatus\" table changed while this mutation was being run and on every subsequent retry. A call to \"scheduled_job_mutation_success\" changed the document with ID \"js7562hqe947gg2yexy9yw14k97f2hwk\". See https://docs.convex.dev/error#1"}
Any ideas?
2 Replies
Convex Bot
Convex Bot2w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
Clever Tagline
Please post this in the #components channel. This one is for more general questions/issues.

Did you find this page helpful?