Skip to content

Commit

Permalink
Increase maximum retry count for deploy run controller (#1450)
Browse files Browse the repository at this point in the history
* increase max retries for all deploy run controller operations

* add changeset
  • Loading branch information
nicktrn authored Nov 1, 2024
1 parent 4194bce commit fa18e6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/poor-parrots-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"trigger.dev": patch
---

Increase max retry count for deploy run controller operations
4 changes: 2 additions & 2 deletions packages/cli-v3/src/entryPoints/deploy-run-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const SHORT_HASH = env.TRIGGER_CONTENT_HASH!.slice(0, 9);
const logger = new SimpleLogger(`[${MACHINE_NAME}][${SHORT_HASH}]`);

const defaultBackoff = new ExponentialBackoff("FullJitter", {
maxRetries: 5,
maxRetries: 7,
});

cliLogger.loggerLevel = "debug";
Expand Down Expand Up @@ -418,7 +418,7 @@ class ProdWorker {

// Retry if we don't receive EXECUTE_TASK_RUN_LAZY_ATTEMPT in a reasonable time
// ..but we also have to be fast to avoid failing the task due to missing heartbeat
for await (const { delay, retry } of defaultBackoff.min(10).maxRetries(3)) {
for await (const { delay, retry } of defaultBackoff.min(10).maxRetries(7)) {
if (retry > 0) {
logger.log("retrying ready for lazy attempt", { retry });
}
Expand Down

0 comments on commit fa18e6c

Please sign in to comment.