-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Sps/token migration tweak, ActionResult casing. #462
Conversation
@@ -572,7 +597,7 @@ private async Task<VssCredentials> GetNewOAuthAuthorizationSetting(CancellationT | |||
Trace.Verbose("No authorization url updates"); | |||
} | |||
} | |||
catch (Exception ex) | |||
catch (Exception ex) when (!token.IsCancellationRequested) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't report migration error when user ctrl-c the runner.
{ | ||
Trace.Info("Start checking oauth authorization url update."); | ||
while (true) | ||
{ | ||
var backoff = BackoffTimerHelper.GetRandomBackoff(TimeSpan.FromMinutes(30), TimeSpan.FromMinutes(45)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move the sleep to the end of the iteration, since most runner has finished migration. there are a small number of runners connected to the server once a while only for a few minutes, so the delay is too long for them.
@@ -164,6 +164,27 @@ public async Task<Boolean> CreateSessionAsync(CancellationToken token) | |||
} | |||
} | |||
|
|||
if (ex is TaskAgentSessionConflictException) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try migration even on session conflict since there are a small number of runners (might be orchestrated by some auto-provision/scaling tools) hitting session conflict all the time.
@@ -21,7 +21,7 @@ public sealed class JobContext : DictionaryContextData | |||
} | |||
set | |||
{ | |||
this["status"] = new StringContextData(value.ToString()); | |||
this["status"] = new StringContextData(value.ToString().ToLowerInvariant()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change to lower case to match GitHub check result
{ | ||
var step = GetStep(scopeName, stepName); | ||
step["conclusion"] = new StringContextData(conclusion); | ||
step["conclusion"] = new StringContextData(conclusion.ToString().ToLowerInvariant()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change to lower case to match GitHub check result
{ | ||
var step = GetStep(scopeName, stepName); | ||
step["outcome"] = new StringContextData(outcome); | ||
step["outcome"] = new StringContextData(outcome.ToString().ToLowerInvariant()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change to lower case to match GitHub check result
4d0636f
to
c5d5a2a
Compare
No description provided.