Commit 14c2bdf
authored
v3: checkpoint and reliability improvements (triggerdotdev#1198)
* only checkpoint retries with delays greater than threshold
* rename checkpoint threshold env var
* log task monitor ignores
* crash runs with unbounded attempts
* fix retry check in shared queue consumer
* add missing stop for env var sync spinner
* prod entry point refactor
* missing awaits
* more verbose prod flush and exit logs
* reduce checkpoint support logs
* heartbeat while checkpointing between retries
* dynamic coordinator config
* measure lazy attempt creation time in prod
* simplify delay threshold
* heartbeat clarifications
* crash run if it doesn't reach checkpointable state
* require dynamic config threshold
* fix retry prep, await previous worker kill
* unify wait mechanics
* fix prod worker without tasks error
* ensure worker is ready to be checkpointed for dependency waits
* improve worker attempt creation logging
* prevent crashes caused by failed socket schema parsing
* fix dynamic imports in v3 catalog
* clarify attempt retry mechanics
* move backoff helper to core-apps
* remove core-apps barrel file
* add backoff execute with callback
* deprecate non-lazy attempt messages
* update socket.io-client to v4.7.5
* fix socket.io types for emits with timeout
* retry all the things
* remove todo
* fix retry restores
* improve index failure logs
* retry incomplete dependency waits
* fix checkpoint in-progress detection
* prevent losing messages during reconnect
* checkpoint when greater or equal to threshold
* improve handling of duration wait edge cases
* add ready for lazy attempt replay
* retry attempt completion
* allow failing runs with unfriendly run id
* fix min max jitter
* cancel checkpoints on run failure
* improve attempt creation errors
* prevent crashing run on failed cleanup
* handle at-least-once execute lazy attempt delivery
* log exit code on prepare for retry
* fix timeout promise
* mark some things
* chaos monkey superpowers
* refactor checkpointer
* set chaos monkey defaults
* less chaos
* fix backoff
* handle uncaught entry point exceptions
* only replay rpcs on true reconnects
* allow resume unless final run status
* add changeset
* small fixes1 parent 7976d92 commit 14c2bdf
36 files changed
Lines changed: 2213 additions & 1246 deletions
File tree
- .changeset
- apps
- coordinator
- src
- docker-provider
- src
- kubernetes-provider
- src
- proxy/src/events
- webapp/app
- v3
- environmentVariables
- marqs
- services
- packages
- cli-v3
- src
- commands
- workers/prod
- core-apps
- src
- core
- src/v3
- runtime
- schemas
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
0 commit comments