Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

docs: Update GHA workflow timeout to 35 days #262

Merged
merged 3 commits into from
Jul 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions content/docs/ref/runner.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ Any [generic option](/doc/ref) in addition to:
- **GitHub Actions timeout after a few hours**.

You can request up to
[72 hours](https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners#usage-limits)
[35 days](https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners#usage-limits)
via
[`timeout-minutes: 4320`](https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes).
CML will helpfully restart GitHub Actions workflows approaching 72 hours
[`timeout-minutes: 50400`](https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes).
CML will helpfully restart GitHub Actions workflows approaching 35 days
(you'd need to write your code to save intermediate results to take advantage
of this).

Expand Down
4 changes: 2 additions & 2 deletions content/docs/self-hosted-runners.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ environment variables for passing your cloud compute credentials to the
workflow.

Note that `cml runner` will also automatically restart your jobs (whether from a
[GitHub Actions 72-hour timeout](https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners#usage-limits)
[GitHub Actions 35 day workflow timeout](https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners#usage-limits)
or a
[AWS EC2 spot instance interruption](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-interruptions.html)).

Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
train-model:
needs: deploy-runner
runs-on: [self-hosted, cml-gpu]
timeout-minutes: 4320 # 72h
timeout-minutes: 50400 # 35 days
container:
image: docker://iterativeai/cml:0-dvc2-base1-gpu
options: --gpus all
Expand Down