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
Codercord
Codercord6mo ago
<#1366401491975409745>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys6mo ago
intercepting builds is not a feature that we support, no what's the use-case?
matifali
matifali6mo ago
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
matifali
matifali6mo ago
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.

Did you find this page helpful?