Commit ee71809
committed
feat: guard against out-of-order webhook delivery in deploy auto-promote
When webhooks arrive out of order (e.g. commit@11:40, commit@11:44,
commit@11:39), the oldest commit could deploy last and get auto-promoted
to live, overtaking a newer commit. This adds a timestamp comparison
before auto-promoting: if the current live deployment has a newer git
commit timestamp, the new deployment skips auto-promote.
Only fires when both timestamps are valid (git-sourced deployments).
CLI/docker uploads (no timestamp) are unaffected.1 parent af854a8 commit ee71809
1 file changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
498 | 519 | | |
499 | 520 | | |
500 | 521 | | |
| |||
0 commit comments