zoomie | TuloZ
Convex Community6mo ago
2 replies
zoomie | Tulo

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"}


Any ideas?
Was this page helpful?