File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -422,14 +422,15 @@ export class Checkpointer {
422
422
423
423
this . #logger. log ( "Checkpointing:" , { options } ) ;
424
424
425
- const containterName = this . #getRunContainerName( runId , attemptNumber ) ;
425
+ const containterName = this . #getRunContainerName( runId ) ;
426
+ const containterNameWithAttempt = this . #getRunContainerName( runId , attemptNumber ) ;
426
427
427
428
// Create checkpoint (docker)
428
429
if ( this . #dockerMode) {
429
430
try {
430
431
if ( this . opts . forceSimulate || ! this . #canCheckpoint) {
431
432
this . #logger. log ( "Simulating checkpoint" ) ;
432
- this . #logger. debug ( await $$ `docker pause ${ containterName } ` ) ;
433
+ this . #logger. debug ( await $$ `docker pause ${ containterNameWithAttempt } ` ) ;
433
434
} else {
434
435
if ( this . simulateCheckpointFailure ) {
435
436
if ( performance . now ( ) < this . simulateCheckpointFailureSeconds * 1000 ) {
@@ -440,11 +441,11 @@ export class Checkpointer {
440
441
441
442
if ( leaveRunning ) {
442
443
this . #logger. debug (
443
- await $$ `docker checkpoint create --leave-running ${ containterName } ${ exportLocation } `
444
+ await $$ `docker checkpoint create --leave-running ${ containterNameWithAttempt } ${ exportLocation } `
444
445
) ;
445
446
} else {
446
447
this . #logger. debug (
447
- await $$ `docker checkpoint create ${ containterName } ${ exportLocation } `
448
+ await $$ `docker checkpoint create ${ containterNameWithAttempt } ${ exportLocation } `
448
449
) ;
449
450
}
450
451
}
You can’t perform that action at this time.
0 commit comments