Skip to content

feat(scheduler): allow custom payload with manual trigger#7

Open
kerwanp wants to merge 1 commit intoboringnode:mainfrom
kerwanp:feat/schedule-trigger-custom-payload
Open

feat(scheduler): allow custom payload with manual trigger#7
kerwanp wants to merge 1 commit intoboringnode:mainfrom
kerwanp:feat/schedule-trigger-custom-payload

Conversation

@kerwanp
Copy link

@kerwanp kerwanp commented Mar 18, 2026

Description

This pull-request adds the ability to provide a custom payload when doing manual schedule trigger.

const schedule = await Schedule.find(scheduleId)
await schedule.trigger(customPayload)

Note

The job payload type is not available here. In the future it could be interesting to have the API available directly on the job itself to have proper typing:

const schedule = await MyJob.findSchedule(scheduleId)
await schedule.trigger(customPayload)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant