File tree 2 files changed +3
-10
lines changed
2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ const shutdown = async (opts) => {
28
28
tfResource,
29
29
noRetry,
30
30
reason,
31
- destroyDelay,
32
- single
31
+ destroyDelay
33
32
} = opts ;
34
33
const tfPath = workdir ;
35
34
@@ -42,13 +41,7 @@ const shutdown = async (opts) => {
42
41
RUNNER && RUNNER . kill ( 'SIGINT' ) ;
43
42
winston . info ( '\tSuccess' ) ;
44
43
} catch ( err ) {
45
- if ( single ) {
46
- winston . warn (
47
- `\tFailed: Runner in --single mode, might have cleared itself.`
48
- ) ;
49
- } else {
50
- winston . error ( `\tFailed: ${ err . message } ` ) ;
51
- }
44
+ winston . error ( `\tFailed: ${ err . message } ` ) ;
52
45
}
53
46
} ;
54
47
Original file line number Diff line number Diff line change @@ -340,7 +340,7 @@ class CML {
340
340
341
341
async unregisterRunner ( opts = { } ) {
342
342
const { id : runnerId } = ( await this . runnerByName ( opts ) ) || { } ;
343
- if ( ! runnerId ) throw new Error ( `Runner with id ${ runnerId } not found` ) ;
343
+ if ( ! runnerId ) throw new Error ( `Runner not found` ) ;
344
344
345
345
return await getDriver ( this ) . unregisterRunner ( { runnerId, ...opts } ) ;
346
346
}
You can’t perform that action at this time.
0 commit comments