File tree 2 files changed +5
-5
lines changed 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -411,7 +411,7 @@ environment variables for passing your cloud service credentials to the
411
411
workflow.
412
412
413
413
Note that `cml runner` will also automatically restart your jobs (whether from a
414
- [GitHub Actions 35 day workflow timeout](https://docs.github.com/en/actions/reference/usage-limits-billing-and-administration#usage-limits)
414
+ [GitHub Actions 35- day workflow timeout](https://docs.github.com/en/actions/reference/usage-limits-billing-and-administration#usage-limits)
415
415
or a
416
416
[AWS EC2 spot instance interruption](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-interruptions.html)).
417
417
@@ -438,7 +438,7 @@ jobs:
438
438
train-model:
439
439
needs: deploy-runner
440
440
runs-on: [self-hosted, cml-gpu]
441
- timeout-minutes: 4320 # 72h - up to 50400 (35d) supported
441
+ timeout-minutes: 50400 # 35 days
442
442
container:
443
443
image: docker://iterativeai/cml:0-dvc2-base1-gpu
444
444
options: --gpus all
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ let RUNNER_ID;
15
15
let RUNNER_JOBS_RUNNING = [ ] ;
16
16
let RUNNER_SHUTTING_DOWN = false ;
17
17
let RUNNER_TIMER = 0 ;
18
- const GHA_WORKFLOW_TIMEOUT = ( 35 * 24 * 60 - 5 ) * 60 * 1000 ;
18
+ const GH_5_MIN_TIMEOUT = ( 35 * 24 * 60 - 5 ) * 60 * 1000 ;
19
19
20
20
const shutdown = async ( opts ) => {
21
21
if ( RUNNER_SHUTTING_DOWN ) return ;
@@ -321,9 +321,9 @@ const runLocal = async (opts) => {
321
321
RUNNER_JOBS_RUNNING . forEach ( ( job ) => {
322
322
if (
323
323
new Date ( ) . getTime ( ) - new Date ( job . date ) . getTime ( ) >
324
- GHA_WORKFLOW_TIMEOUT
324
+ GH_5_MIN_TIMEOUT
325
325
) {
326
- shutdown ( { ...opts , reason : 'timeout:35d ' } ) ;
326
+ shutdown ( { ...opts , reason : 'timeout:35days ' } ) ;
327
327
clearInterval ( watcherSeventyTwo ) ;
328
328
}
329
329
} ) ;
You can’t perform that action at this time.
0 commit comments