knk_101
1
We have scheduled one monthly job. Is there a way to update the arguments in already scheduled and running Cron job?
const handle = await client.start(cronStartFunc, {
args: [payload],
taskQueue: 'my-queue',
cronSchedule: '0 0 1 * *',
workflowId: `${nanoid()}`
});
Is there a way to update the arguments(args) from the next run onwards ?
This isn’t supported with the cron feature but is supported by the newer “schedules” feature.
See the API reference how to use it and samples in the SDK test suite:
Note that schedules requires Temporal server >= 1.18 and are not yet available on Temporal Cloud.