Skip to content

Conversation

@ispasov
Copy link
Collaborator

@ispasov ispasov commented Feb 9, 2026

Description

  • Cancel provisioning on job completion

There are some cases in which the agent never finishes the job, while the integration gets JobCompeted message. In this case the runner is stuck and the underlying VM is never deleted.
Introduce a provisioning context that is going to cancel the provisioning when the job complete message is received.
This is going to ensure that the VM and the runner are deleted and resoruces are freed.

This also ensures a VM is deleted if a run is cancelled and the cancellation is never received from the VM.

There are some cases in which the agent never finishes the job, while the integration gets JobCompeted message. In this case the runner is stuck and the underlying VM is never deleted.
Introduce a provisioning context that is going to cancel the provisioning when the job complete message is received.
This is going to ensure that the VM and the runner are deleted and resoruces are freed.

This also ensures a VM is deleted if a run is cancelled and the cancellation is never received from the VM.
@ispasov ispasov requested a review from a team as a code owner February 9, 2026 10:21
Copy link
Contributor

@relwell relwell left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for this

@ispasov ispasov merged commit 8673876 into main Feb 9, 2026
2 checks passed
@ispasov ispasov deleted the is/cancel-provisioning-context branch February 9, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants