Skip to content

Queue callback error: Cannot completed workflow run because it has already finished with status 'completed' #1022

@andreisocaciu

Description

@andreisocaciu

After upgrading to 4.1.0-beta.55 I got this error in one of my workflows. It was the last log from the /.well-known/workflow/v1/flowz endpoint:

[Workflow] Error while running workflow {
  workflowRunId: 'wrun_01KH8YSFDX30GQE1176DPD2SRS',
  errorName: 'WorkflowAPIError',
  errorStack: "WorkflowAPIError: Cannot completed workflow run wrun_01KH8YSFDX30GQE1176DPD2SRS because it has already finished with status 'completed'\n" +
    '    at /var/task/.next/server/chunks/node_modules__pnpm_cfbf11c1._.js:27:146\n' +
    '    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n' +
    '    at async /var/task/.next/server/chunks/node_modules__pnpm_cfbf11c1._.js:26:55971\n' +
    '    at async pO (/var/task/.next/server/chunks/node_modules__pnpm_cfbf11c1._.js:33:5699)\n' +
    '    at async /var/task/.next/server/chunks/node_modules__pnpm_cfbf11c1._.js:26:55971\n' +
    '    at async /var/task/.next/server/chunks/node_modules__pnpm_cfbf11c1._.js:37:20558\n' +
    '    at async pY (/var/task/.next/server/chunks/node_modules__pnpm_cfbf11c1._.js:33:28267)\n' +
    '    at async /var/task/.next/server/chunks/node_modules__pnpm_cfbf11c1._.js:37:19328\n' +
    '    at async /var/task/.next/server/chunks/node_modules__pnpm_cfbf11c1._.js:24:150692\n' +
    '    at async /var/task/.next/server/chunks/node_modules__pnpm_cfbf11c1._.js:37:18826'
}
Queue callback error: Error [WorkflowAPIError]: Cannot failed workflow run wrun_01KH8YSFDX30GQE1176DPD2SRS because it has already finished with status 'completed'
    at ignore-listed frames {
  cause: undefined,
  status: 409,
  code: undefined,
  url: 'https://vercel-workflow.com/api/v2/runs/wrun_01KH8YSFDX30GQE1176DPD2SRS/events',
  retryAfter: undefined
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions