Can copilot-setup-steps job timeout-minutes maximum value: 59 be increased further or this cap be removed #183671
Replies: 4 comments 4 replies
-
|
Currently, the 59-minute limit for the copilot-setup-steps job is a fixed cap and cannot be increased or removed. This limit is enforced by GitHub and any higher value is ignored. |
Beta Was this translation helpful? Give feedback.
-
|
## 1. Overview When using GitHub Copilot coding agents inside workflows on GitHub, you may encounter a configuration where the Developers sometimes want to increase this timeout for long-running environment setup tasks. The key question is whether this limit can be increased or removed. # 2. Short Answer No. This restriction is enforced by the Copilot execution environment and is not configurable by users. # 3. Why the Limit Exists The limitation comes from how the Copilot runtime environment works inside the GitHub infrastructure. Copilot agents run in temporary sandbox environments built on top of the GitHub Actions execution model. These environments are designed to be:
To guarantee stability and resource fairness across users, GitHub enforces strict runtime caps. The # 4. Difference Between Copilot Setup Jobs and Normal Actions Jobs Normal GitHub Actions jobs can run much longer depending on the runner type. Typical limits are: GitHub-hosted runner
Self-hosted runner
However, Therefore it has a stricter cap. # 5. What the This phase is designed only for lightweight preparation tasks, such as:
Examples of appropriate setup tasks: It is not intended for:
# 6. Recommended Workarounds Although the timeout cannot be increased, there are several effective strategies to handle longer setup requirements. ## Solution 1: Move Heavy Work to a Separate Job Instead of performing heavy tasks during Example: Then allow Copilot to operate after the build artifacts are ready. ## Solution 2: Cache Dependencies Use caching to significantly reduce setup time. Example: Caching avoids repeated downloads and installations. ## Solution 3: Prebuild a Development Container If your environment requires many dependencies, create a prebuilt container image. Example Dockerfile: Then use that image during setup so the environment starts almost instantly. ## Solution 4: Reduce Setup Complexity Many setup steps can be optimized:
Reducing setup complexity helps ensure the process finishes well within the 59-minute window. # 7. Best Practice Architecture A recommended workflow structure for Copilot projects is: This keeps the Copilot environment responsive and avoids hitting timeout limits. # 8. Conclusion The This cap exists because Copilot runs inside a managed sandbox environment optimized for quick setup and short-lived execution. If your setup exceeds this limit, the recommended approach is to:
Following these practices ensures reliable Copilot execution while staying within the platform’s constraints. |
Beta Was this translation helpful? Give feedback.
This comment was marked as low quality.
This comment was marked as low quality.
-
|
The 59-minute limit is currently enforced and can't be increased. If your setup needs longer, you'll need to optimize or split the initialization into smaller steps. This would be a valuable enhancement request. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Copilot Feature Area
Copilot in GitHub / Copilot Coding Agent
Body
In self hosted copilot jobs, the "Processing Request" step of the job get's killed after 59 mins. Can this copilot-setup-steps job timeout-minutes maximum value: 59 mins setting be increased further to a sufficiently high value (say 6 hrs) or can this cap be removed altogether.
Reference Doc
Beta Was this translation helpful? Give feedback.
All reactions