File tree 2 files changed +2
-13
lines changed
Public/Src/Engine/Scheduler
2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -674,18 +674,6 @@ public static ExecutionResult GetFailureNotRunResult(LoggingContext loggingConte
674
674
return result ;
675
675
}
676
676
677
- /// <summary>
678
- /// Gets a cancelled result without run information.
679
- /// </summary>
680
- public static ExecutionResult GetCancelledNotRunResult ( LoggingContext loggingContext )
681
- {
682
- var result = new ExecutionResult ( ) ;
683
- result . SetResult ( loggingContext , PipResultStatus . Canceled ) ;
684
- result . Seal ( ) ;
685
-
686
- return result ;
687
- }
688
-
689
677
/// <summary>
690
678
/// Gets a failure result for testing purposes.
691
679
/// </summary>
Original file line number Diff line number Diff line change @@ -329,7 +329,8 @@ public PipExecutionStep Cancel()
329
329
// Make sure that ExecutionResult is always initialized.
330
330
if ( ( PipType == PipType . Process || PipType == PipType . Ipc ) && ExecutionResult == null )
331
331
{
332
- SetExecutionResult ( ExecutionResult . GetCancelledNotRunResult ( LoggingContext ) ) ;
332
+ Contract . Assert ( Environment . IsTerminating , "Attempted to cancel a pip prior its execution but the scheduler is not terminating." ) ;
333
+ SetExecutionResult ( ExecutionResult . GetRetryableNotRunResult ( LoggingContext , RetryInfo . GetDefault ( RetryReason . StoppedWorker ) ) ) ;
333
334
}
334
335
335
336
return PipExecutionStep . Cancel ;
You can’t perform that action at this time.
0 commit comments