This repository has been archived by the owner on Dec 20, 2024. It is now read-only.
Multiple deploy hook calls do not immediately cancel builds #3072
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Page to Investigate
https://vercel.com/docs/concepts/deployments/deploy-hooks#other-optimizations
Steps to Reproduce
According to the docs at https://vercel.com/docs/concepts/deployments/deploy-hooks#other-optimizations, calling the same deploy hook multiple times should only trigger a single build and all others are cancelled.
What I'm seeing is slightly different (deploy hooks are called from Sanity in our case):
Expected:
4. Job B is created and starts building, job A is cancelled mid-build and removed
6. Job C is created and starts building, job A & B are cancelled and removed
I understand that cancelling many builds may trigger some warning, but the current method will make job C wait unnecessarily for job A. It will also show job B as being queued while it will never be built.
If someone is calling the deploy hook a lot, this can mean many queued jobs in the overview that will never be built.
Beta Was this translation helpful? Give feedback.
All reactions