Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.4k
feat: add isReplay to run context#3454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
1887eb2157ad463f5a23538fc9e0c64b9d6File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@trigger.dev/core": patch | ||
| --- | ||
| Add `isReplay` boolean to the run context (`ctx.run.isReplay`), derived from the existing `replayedFromTaskRunFriendlyId` database field. Defaults to `false` for backwards compatibility. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -277,6 +277,7 @@ export const DequeuedMessage = z.object({ | ||
| id: z.string(), | ||
| friendlyId: z.string(), | ||
| isTest: z.boolean(), | ||
| isReplay: z.boolean().default(false), | ||
nicktrn marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| machine: MachinePreset, | ||
| attemptNumber: z.number(), | ||
| masterQueue: z.string(), | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -292,6 +292,7 @@ export const TaskRunExecutionLazyAttemptPayload = z.object({ | ||
| attemptCount: z.number().optional(), | ||
| messageId: z.string(), | ||
| isTest: z.boolean(), | ||
| isReplay: z.boolean().default(false), | ||
devin-ai-integration[bot] marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| traceContext: z.record(z.unknown()), | ||
| environment: z.record(z.string()).optional(), | ||
| metrics: TaskRunExecutionMetrics.optional(), | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.