{
  "id": "cicd/circleci-workflow-approval-timeout",
  "signature": "Error: Workflow timed out after 60 minutes waiting for approval. The workflow has been canceled.",
  "signature_zh": "错误：工作流在等待审批 60 分钟后超时。工作流已被取消。",
  "regex": "Workflow timed out after \\d+ minutes waiting for approval\\. The workflow has been canceled\\.",
  "domain": "cicd",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "A CircleCI workflow with a manual approval job timed out because the required approver did not approve or reject the job within the default 60-minute timeout period.",
  "root_cause_type": "generic",
  "root_cause_zh": "由于所需的审批者在默认的 60 分钟超时时间内未批准或拒绝作业，带有手动审批作业的 CircleCI 工作流超时。",
  "versions": [
    {
      "version": "CircleCI CLI 0.1.3000",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "CircleCI Server 4.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Project settings do not control approval timeout; the timeout is fixed per plan (60 minutes for free/paid) and cannot be changed via settings.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Re-running does not bypass the approval step; the same approval job will be triggered again, and the timeout will recur if no one approves.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use the CircleCI API to approve the job manually: `curl -X POST -H \"Circle-Token: $CIRCLE_TOKEN\" https://circleci.com/api/v2/workflow/{workflow_id}/approve/{approval_request_id}`. Find the approval_request_id from the workflow's jobs via the API.",
      "success_rate": 0.9,
      "how": "Use the CircleCI API to approve the job manually: `curl -X POST -H \"Circle-Token: $CIRCLE_TOKEN\" https://circleci.com/api/v2/workflow/{workflow_id}/approve/{approval_request_id}`. Find the approval_request_id from the workflow's jobs via the API.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Modify the workflow configuration to remove the approval job for non-production branches, or use a conditional approval: `when: << pipeline.parameters.deploy_to_prod >>` where the parameter defaults to false for development branches.",
      "success_rate": 0.8,
      "how": "Modify the workflow configuration to remove the approval job for non-production branches, or use a conditional approval: `when: << pipeline.parameters.deploy_to_prod >>` where the parameter defaults to false for development branches.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Use the CircleCI API to approve the job manually: `curl -X POST -H \"Circle-Token: $CIRCLE_TOKEN\" https://circleci.com/api/v2/workflow/{workflow_id}/approve/{approval_request_id}`. Find the approval_request_id from the workflow's jobs via the API.",
    "Modify the workflow configuration to remove the approval job for non-production branches, or use a conditional approval: `when: << pipeline.parameters.deploy_to_prod >>` where the parameter defaults to false for development branches."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://circleci.com/docs/workflows/#holding-a-workflow-for-manual-approval",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.83,
  "fix_success_rate": 0.88,
  "resolvable": "partial",
  "first_seen": "2024-06-12",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}