diff --git a/src/drivers/gitlab.js b/src/drivers/gitlab.js index 932964ea6..489f64d35 100644 --- a/src/drivers/gitlab.js +++ b/src/drivers/gitlab.js @@ -200,6 +200,11 @@ class Gitlab { const { protocol, host } = new URL(this.repo); const { token } = await this.registerRunner({ tags: labels, name }); + let waitTimeout = idleTimeout; + if (idleTimeout === 'never') { + waitTimeout = '0'; + } + let dockerVolumesTpl = ''; dockerVolumes.forEach((vol) => { dockerVolumesTpl += `--docker-volumes ${vol} `; @@ -210,7 +215,7 @@ class Gitlab { --url "${protocol}//${host}" \ --name "${name}" \ --token "${token}" \ - --wait-timeout ${idleTimeout} \ + --wait-timeout ${waitTimeout} \ --executor "${IN_DOCKER ? 'shell' : 'docker'}" \ --docker-image "iterativeai/cml:${gpu ? 'latest-gpu' : 'latest'}" \ ${gpu ? '--docker-runtime nvidia' : ''} \