Set the checkpointEventId in marqs when the checkpoint is created for batchTriggerAndWait
This should fix a horrible race condition when at max concurrency
This commit is contained in:
@@ -258,6 +258,16 @@ export class CreateCheckpointService extends BaseService {
|
||||
};
|
||||
}
|
||||
|
||||
//if there's a message in the queue, we make sure the checkpoint event is on it
|
||||
await marqs?.replaceMessage(
|
||||
attempt.taskRun.id,
|
||||
{
|
||||
checkpointEventId: checkpointEvent.id,
|
||||
},
|
||||
undefined,
|
||||
true
|
||||
);
|
||||
|
||||
await ResumeBatchRunService.enqueue(batchRun.id, this._prisma);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user