Make isRetry context property backwards compatible and add it to the TriggerContext type
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@trigger.dev/sdk": patch
|
||||
---
|
||||
|
||||
Make isRetry context property backwards compatible and add it to the TriggerContext type
|
||||
@@ -307,7 +307,7 @@ export const RunJobBodySchema = z.object({
|
||||
run: z.object({
|
||||
id: z.string(),
|
||||
isTest: z.boolean(),
|
||||
isRetry: z.boolean(),
|
||||
isRetry: z.boolean().default(false),
|
||||
startedAt: z.coerce.date(),
|
||||
}),
|
||||
environment: z.object({
|
||||
|
||||
@@ -19,7 +19,7 @@ export interface TriggerContext {
|
||||
/** Organization metadata */
|
||||
organization: { slug: string; id: string; title: string };
|
||||
/** Run metadata */
|
||||
run: { id: string; isTest: boolean; startedAt: Date };
|
||||
run: { id: string; isTest: boolean; startedAt: Date; isRetry: boolean };
|
||||
/** Event metadata */
|
||||
event: { id: string; name: string; context: any; timestamp: Date };
|
||||
/** Source metadata */
|
||||
|
||||
Reference in New Issue
Block a user