Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyJ27 committed Jul 28, 2023
1 parent 55a9de4 commit aaaba57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/drivers/gitlab.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,9 @@ class Gitlab {
const { protocol, host } = new URL(this.repo);
const { token } = await this.registerRunner({ tags: labels, name });

var waitTimeout = idleTimeout;
if (idleTimeout === 'never') {
idleTimeout = '0';
waitTimeout = '0';
}

let dockerVolumesTpl = '';
Expand All @@ -214,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' : ''} \
Expand Down

0 comments on commit aaaba57

Please sign in to comment.