We are from time to time seeing jobs running on macOS being cancelled.
The log for the job shows:
2020-01-23T11:48:23.5315674Z ##[section]Starting: Request a runner to run this job 2020-01-23T11:48:23.6273708Z Requesting a hosted runner in current repository's account/organization with labels: 'macOS-latest', require runner match: True 2020-01-23T11:48:23.6723606Z Labels matched hosted runners has been found, waiting for one of them get assigned for this job. 2020-01-23T11:48:23.6973639Z ##[section]Finishing: Request a runner to run this job
And the job annotations:
“An error occurred while provisioning resources (Error Type: Disconnect).”
“Received request to deprovision: The request was cancelled by the remote provider.”
This is really annoying as it is the last step of a fairly long chain of builds. Any idea why it happens and how we can avoid it?