Skip to content

Commit ea20f88

Browse files
committed
add changeset
1 parent 33c0396 commit ea20f88

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.changeset/mighty-eggs-grab.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
"@trigger.dev/core-apps": patch
3+
"trigger.dev": patch
4+
"@trigger.dev/core": patch
5+
---
6+
7+
Tasks should now be much more robust and resilient to reconnects during crucial operations and other failure scenarios.
8+
9+
Task runs now have to signal checkpointable state prior to ALL checkpoints. This ensures flushing always happens.
10+
11+
All important socket.io RPCs will now be retried with backoff. Actions relying on checkpoints will be replayed if we haven't been checkpointed and restored as expected, e.g. after reconnect.
12+
13+
Other changes:
14+
15+
- Fix retry check in shared queue
16+
- Fix env var sync spinner
17+
- Heartbeat between retries
18+
- Fix retry prep
19+
- Fix prod worker no tasks detection
20+
- Fail runs above `MAX_TASK_RUN_ATTEMPTS`
21+
- Additional debug logs in all places
22+
- Prevent crashes due to failed socket schema parsing
23+
- Remove core-apps barrel
24+
- Upgrade socket.io-client to fix an ACK memleak
25+
- Additional index failure logs
26+
- Prevent message loss during reconnect
27+
- Prevent burst of heartbeats on reconnect
28+
- Prevent crash on failed cleanup
29+
- Handle at-least-once lazy execute message delivery
30+
- Handle uncaught entry point exceptions

packages/cli-v3/src/workers/prod/entry-point.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ class ProdWorker {
398398
// Workers with lazy attempt support set their friendly ID here
399399
this.attemptFriendlyId = message.execution.attempt.id;
400400
});
401-
401+
402402
backgroundWorker.onWaitForDuration.attach(async (message) => {
403403
logger.log("onWaitForDuration", { ...message, drift: Date.now() - message.now });
404404

0 commit comments

Comments
 (0)