GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||
GeezerVison is showing trigger.dev — Versioning - Trigger.dev A version is a bundle of tasks at a certain point in time.
Version identifiersVersion identifiers look like this:
20240313.1 in both the dev and prod environments.
Version lockingWhen a task run starts it is locked to the latest version of the code (for that environment). Once locked it won’t change versions, even if you deploy new versions. This is to ensure that a task run is not affected by changes to the code. Delayed runs are locked to the version that’s active when they begin executing, not when they’re enqueued.Child tasks and version lockingTrigger and wait functions version lock child task runs to the parent task run version. This ensures the results from child runs match what the parent task is expecting. If you don’t wait then version locking doesn’t apply.
Local developmentWhen running the local server (usingnpx trigger.dev dev), every relevant code change automatically creates a new version of all tasks.
So a task run will continue running on the version it was locked to. We do this by spawning a new process for each task run. This ensures that the task run is not affected by changes to the code.
DeploymentEvery deployment creates a new version of all tasks for that environment. Because your application and your tasks deploy separately, a release of your app can briefly trigger tasks that belong to a different version. Version skew protection pins each run to the deployment built from the same commit, once your app sends the id it was deployed with.Retries and reattemptsWhen a task has an uncaught error it will retry, if the task has retries configured (theretry option or retries.default in your config). Retries are locked to the original version of the run.
ReplaysA “replay” is a new run of a task that uses the same inputs but will use the latest version of the code. This is useful when you fix a bug and want to re-run a task with the same inputs. See replaying for more information.Was this page helpful? ⌘I | ||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |