A runnable's run that dispatches the task file: dispatchTaskFile with these options. Pass it to defineRunnable, which runs it under the crash handler (Decision 57); nothing runs until the job does.
run
defineRunnable
export default defineRunnable({ id: 'acme-daily-briefing', domain: 'acme', flags: dispatcherFlags, run: taskFileDispatcher({ scriptName: 'acme/daily-briefing', jobId: 'acme-daily-briefing', taskFile: 'tasks/daily-briefing.md', }),}); Copy
export default defineRunnable({ id: 'acme-daily-briefing', domain: 'acme', flags: dispatcherFlags, run: taskFileDispatcher({ scriptName: 'acme/daily-briefing', jobId: 'acme-daily-briefing', taskFile: 'tasks/daily-briefing.md', }),});
A runnable's
runthat dispatches the task file: dispatchTaskFile with these options. Pass it todefineRunnable, which runs it under the crash handler (Decision 57); nothing runs until the job does.