Skip to content

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

Merged
RomainLanz merged 1 commit intoboringnode:mainfrom
kerwanp:feat/schedule-trigger-custom-payload
Mar 21, 2026
Merged

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

Conversation

@kerwanp
Copy link
Contributor

@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)

@RomainLanz RomainLanz merged commit c26de83 into boringnode:main Mar 21, 2026
3 checks passed
@RomainLanz
Copy link
Member

Thanks!

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.

2 participants