Skip to content

fix: correct default timeout docs from 360 to 20 minutes (#21663)#21673

Merged
dsyme merged 2 commits intomainfrom
fix/docs-default-timeout-20min
Mar 18, 2026
Merged

fix: correct default timeout docs from 360 to 20 minutes (#21663)#21673
dsyme merged 2 commits intomainfrom
fix/docs-default-timeout-20min

Conversation

@dsyme
Copy link
Contributor

@dsyme dsyme commented Mar 18, 2026

Fixes #21663

Summary

Several doc pages incorrectly stated the GitHub Actions platform default of 360 minutes for timeout-minutes. The gh-aw compiler actually enforces a 20-minute default for agentic workflow steps (DefaultAgenticWorkflowTimeout in pkg/constants/constants.go).

Changes

File Fix
docs/reference/rate-limiting-controls.md 360 → 20 minutes
docs/reference/glossary.md 360 minutes (6 hours) → 20 minutes for agentic workflows
docs/reference/frontmatter.md Table: default 360 → 20
docs/reference/custom-safe-outputs.md Table: default 360 → 20
docs/guides/github-actions-primer.md Clarified: 360 is the GitHub platform default; agentic jobs default to 20

The gh-aw compiler enforces a 20-minute default timeout for agentic
workflow steps (DefaultAgenticWorkflowTimeout in constants.go), but
several doc pages incorrectly stated the GitHub Actions platform default
of 360 minutes.

Fixed in:
- docs/reference/rate-limiting-controls.md
- docs/reference/glossary.md
- docs/reference/frontmatter.md (table row)
- docs/reference/custom-safe-outputs.md (table row)
- docs/guides/github-actions-primer.md (clarified platform vs agentic default)
Copilot AI review requested due to automatic review settings March 18, 2026 23:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates documentation to reflect that gh-aw applies a 20-minute default timeout to agentic workflow execution (via timeout-minutes), rather than the GitHub Actions platform’s commonly cited 360-minute default.

Changes:

  • Updates multiple reference docs to state a 20-minute default for timeout-minutes.
  • Updates glossary/primer wording around default timeouts for agentic workflows vs standard GitHub Actions jobs.
  • Adjusts timeout-minutes default values in reference tables.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
docs/src/content/docs/reference/rate-limiting-controls.md Updates timeout default in the “Timeouts” section.
docs/src/content/docs/reference/glossary.md Updates glossary definition of “Timeout” default for agentic workflows.
docs/src/content/docs/reference/frontmatter.md Updates timeout-minutes default in the custom jobs supported-fields table.
docs/src/content/docs/reference/custom-safe-outputs.md Updates timeout-minutes default in the safe job properties table.
docs/src/content/docs/guides/github-actions-primer.md Clarifies platform vs agentic default timeout in the primer.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines 40 to 43
Jobs have maximum execution times (default: 20 minutes) controlled by the top-level `timeout-minutes` field:

```yaml wrap
timeout-minutes: 120 # Apply 120-minute timeout to all jobs
### Timeout

Maximum duration a workflow can run before automatic cancellation. Configured via `timeout-minutes:` in frontmatter. Default is 360 minutes (6 hours); workflows can specify shorter timeouts to fail faster.
Maximum duration a workflow can run before automatic cancellation. Configured via `timeout-minutes:` in frontmatter. Default is 20 minutes for agentic workflows; workflows can specify longer timeouts if needed.
| `outputs` | Values exposed to downstream jobs |
| `env` | Environment variables available to all steps |
| `timeout-minutes` | Maximum job duration (default: 360) |
| `timeout-minutes` | Maximum job duration (default: 20) |
| `env` | object | No | Environment variables for all steps |
| `if` | string | No | Conditional execution expression |
| `timeout-minutes` | number | No | Maximum job duration (default: 360) |
| `timeout-minutes` | number | No | Maximum job duration (default: 20) |
### Jobs

A **job** is a set of steps that execute on the same runner (virtual machine). Jobs run in parallel by default but can depend on each other with `needs:`. Each job runs in a fresh VM, and results are shared between jobs using artifacts. Default timeout is 360 minutes.
A **job** is a set of steps that execute on the same runner (virtual machine). Jobs run in parallel by default but can depend on each other with `needs:`. Each job runs in a fresh VM, and results are shared between jobs using artifacts. Default timeout is 360 minutes for standard GitHub Actions jobs; agentic workflow jobs default to 20 minutes.
@pelikhan
Copy link
Contributor

@copilot the timeout-minutes only applies to the agent job, all other job use the github actions default.

… all jobs

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Mar 18, 2026

@copilot the timeout-minutes only applies to the agent job, all other job use the github actions default.

Fixed in 70271e5. Updated all five doc pages to clarify that the 20-minute default applies only to the agent execution step — custom jobs and safe-output jobs now correctly document the GitHub Actions platform default of 360 minutes.

Copilot AI requested a review from pelikhan March 18, 2026 23:46
@dsyme dsyme merged commit 0d0037e into main Mar 18, 2026
@dsyme dsyme deleted the fix/docs-default-timeout-20min branch March 18, 2026 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs are mistaken about default timeout

4 participants