Pass timeout in executioncontext instead of stepsrunner (#2714)

* Pass timeout in executioncontext instead of stepsrunner

* Fix linting
This commit is contained in:
Ferenc Hammerl
2023-07-25 14:12:00 +02:00
committed by GitHub
parent a61d3f37dc
commit 7cb61925b0
2 changed files with 10 additions and 5 deletions

View File

@@ -421,8 +421,6 @@ namespace GitHub.Runner.Worker.Handlers
{
Trace.Info($"Starting: {step.DisplayName}");
step.ExecutionContext.Debug($"Starting: {step.DisplayName}");
// composite steps inherit the timeout from the parent, set by https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepstimeout-minutes
step.ExecutionContext.SetTimeout(step.ExecutionContext.Parent.GetRemainingTimeout());
await Common.Util.EncodingUtil.SetEncoding(HostContext, Trace, step.ExecutionContext.CancellationToken);