guide: GH resuming workflow
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- aws, gcp, github-actions
- Domain
- ci-cd, cloud, documentation
Research direction
Start with the cml-with-dvc guide and the GitHub section of self-hosted-runners, especially the allocating-cloud-compute-resources-with-cml example. Verify the requested self-hosted labels, timeout-minutes: 50400, workflow resumption behavior, and DVC checkpoint caching. Done means the guide contains a complete long-running example showing how resumed workflows reuse previous results.
Written by the indexing model from the issue text.
Description
Add a self-hosted long-running example to https://cml.dev/doc/cml-with-dvc (or somewhere else)
- GH action launches "self-hosted" GCP/AWS using
cml runner --reuse --labels=cmland probably--cloud-spot - GH action runs the rest of the workflow on the "self-hosted" runner using
runs-on: [self-hosted, cml]andtimeout-minutes: 50400 - If GH action is about to timeout, CML will restart the workflow
- i.e. https://cml.dev/doc/self-hosted-runners?tab=GitHub#allocating-cloud-compute-resources-with-cml
- The key is requesting GH's maximum
timeout-minutes: 50400- this signals to CML to restart the workflow just before timeout. - write code to cache results so that the restarted workflow will use previous results (e.g. use https://dvc.org/doc/user-guide/experiment-management/checkpoints#caching-checkpoints and https://github.com/iterative/dvc/issues/6823)
- Dominant language
- TypeScript
- Stars
- 13
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from iterative/cml.dev
-
Difficulty 5/5 Over a week Newbie friendliness 48/100
-
Link Checker ReportOpenlink-check-all
Difficulty 2/5 1-3 hours Newbie friendliness 40/100
-
Link Checker ReportOpenlink-check-all
Difficulty 1/5 Under an hour Newbie friendliness 45/100
-
crossref DVCLiveMay be free again @casperdcl claimed this 1390 days ago, and no pull request is open. OpenC: guide C: ref documentation p1-important
-
docs: driver token timeoutMay be free again @dacbd claimed this 1403 days ago, and no pull request is open. OpenC: guide C: ref documentation
All issues in iterative/cml.dev
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Vessel9817/onion-site-template#512 ·
Maintainers usually reply within 1 day
-
nightly-tests
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BlackBeltTechnology/pi-agent-dashboard#1256 ·
Maintainers usually reply within 1 day
-
approved
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
fritzprix/libr-agent#3266 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
better-auth/better-auth#13101 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day