Skip to content
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

Publish job telemetry to run-service. #3545

Merged
merged 2 commits into from
Nov 8, 2024
Merged

Conversation

TingluoHuang
Copy link
Member

@TingluoHuang TingluoHuang requested a review from a team as a code owner November 7, 2024 23:56
@@ -279,7 +280,12 @@ private async Task<TaskResult> CompleteJobAsync(IRunServer runServer, IExecution
jobContext.Debug($"Finishing: {message.JobDisplayName}");
TaskResult result = jobContext.Complete(taskResult);

await ShutdownQueue(throwOnFailure: false);
var jobQueueTelemetry = await ShutdownQueue(throwOnFailure: false);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

match the behavior for sending job complete to actions service.

@@ -329,49 +342,7 @@ private async Task<TaskResult> CompleteJobAsync(IJobServer jobServer, IExecution

if (_runnerSettings.DisableUpdate == true)
{
try
{
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i moved this to its own method in the bottom of the file, so i can easily diff the different between send job completion to run-service vs. actions-service.

@TingluoHuang TingluoHuang merged commit 6ef5803 into main Nov 8, 2024
9 checks passed
@TingluoHuang TingluoHuang deleted the users/tihuang/jobtelemetry branch November 8, 2024 02:00
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants