Intercept builds via API
Is there any way we can intercept builds via API and cancel them before provisioning resources?
I saw in the premium that we can set quotas.
Thanks
4 Replies
<#1366401491975409745>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
intercepting builds is not a feature that we support, no
what's the use-case?
It is possible to cancel a build, but it can leave Terraform in an inconsistent state and may require manual cleanup of some resources.
See: https://coder.com/docs/reference/cli/provisioner_jobs
provisioner jobs | Coder Docs
View and manage provisioner jobs
Here is the API: https://coder.com/docs/reference/api/builds#cancel-workspace-build
Builds API Reference | Coder Docs
Manage workspace builds in Coder. Retrieve build logs, handle workspace transitions, and cancel or track build status through the Builds API.