Fix inputs validation warning, fix post step display name, fix worker crash due to error in step.env (#490)

This commit is contained in:
Tingluo Huang
2020-05-21 11:09:50 -04:00
committed by GitHub
parent 4fc87ddfc6
commit 6f260012a3
5 changed files with 144 additions and 105 deletions

View File

@@ -364,7 +364,11 @@ namespace GitHub.Runner.Worker
}
}
_cancellationTokenSource?.Dispose();
if (Root != this)
{
// only dispose TokenSource for step level ExecutionContext
_cancellationTokenSource?.Dispose();
}
_logger.End();
@@ -852,7 +856,7 @@ namespace GitHub.Runner.Worker
{
Interlocked.Add(ref _totalThrottlingDelayInMilliseconds, Convert.ToInt64(data.Delay.TotalMilliseconds));
if (!_throttlingReported &&
if (!_throttlingReported &&
_totalThrottlingDelayInMilliseconds > _throttlingDelayReportThreshold)
{
this.Warning(string.Format("The job is currently being throttled by the server. You may experience delays in console line output, job status reporting, and action log uploads."));