public IActionResult ReleaseAgent([FromBody] AgentReleaseItem agentReleaseItem) { (string orchestrationId, string jobName) = ExtractRequestSourceInfo(); using (_logger.BeginScope("Starting release operation for " + "Agent Id={agentId} Pool={agentPool} OrchestrationId={orchestrationId} JobName={jobName}", agentReleaseItem.agentId, agentReleaseItem.agentPool, orchestrationId, jobName)) { _logger.LogInformation("Releasing agent corresponding to helix job {helixJob}, work item {workItem}", agentReleaseItem.agentData?.correlationId, agentReleaseItem.agentData?.workItemId); // Nothing to do here AFAIK. VSTS will have shut down the agent connection, causing the agent process to exit. // This means that the corresponding Helix work item will be done and can continue to process work. return(Accepted()); } }
public IActionResult ReleaseAgent([FromBody] AgentReleaseItem agentReleaseItem) { // Nothing to do here AFAIK. VSTS will have shut down the agent connection, causing the agent process to exit. // This means that the corresponding Helix work item will be done and can continue to process work. return(Accepted()); }