( params: TaskOptions<SchedulesAPI.ScheduledTaskPayload, TOutput, TInitOutput> )
| 11 | import { OffsetLimitPagePromise } from "@trigger.dev/core/v3/apiClient/core"; |
| 12 | |
| 13 | export function task<TOutput, TInitOutput extends InitOutput>( |
| 14 | params: TaskOptions<SchedulesAPI.ScheduledTaskPayload, TOutput, TInitOutput> |
| 15 | ): Task<SchedulesAPI.ScheduledTaskPayload, TOutput> { |
| 16 | const task = createTask(params); |
| 17 | |
| 18 | taskCatalog.updateTaskMetadata(task.id, { |
| 19 | triggerSource: "schedule", |
| 20 | }); |
| 21 | |
| 22 | return task; |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Creates a new schedule |
nothing calls this directly
no test coverage detected
searching dependent graphs…