File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -662,7 +662,8 @@ func (d *defaultManager) restartRemoteWorkload(
662
662
logger .Infof ("Loaded configuration from state for %s" , runConfig .BaseName )
663
663
664
664
// Start the remote workload using the loaded runner
665
- return d .startWorkload (childCtx , name , mcpRunner , foreground )
665
+ // Use background context to avoid timeout cancellation - same reasoning as container workloads
666
+ return d .startWorkload (context .Background (), name , mcpRunner , foreground )
666
667
}
667
668
668
669
// restartContainerWorkload handles restarting a container-based workload
@@ -695,8 +696,10 @@ func (d *defaultManager) restartContainerWorkload(childCtx context.Context, name
695
696
return err
696
697
}
697
698
698
- // Start the workload
699
- return d .startWorkload (childCtx , name , mcpRunner , foreground )
699
+ // Start the workload with background context to avoid timeout cancellation
700
+ // The childCtx with AsyncOperationTimeout is only for the restart setup operations,
701
+ // but the actual workload should run indefinitely with its own lifecycle management
702
+ return d .startWorkload (context .Background (), name , mcpRunner , foreground )
700
703
}
701
704
702
705
// workloadState holds the current state of a workload for restart operations
You can’t perform that action at this time.
0 commit comments