Job worker handlers are getting invoked within 10 min of creating the job worker but after that, it does not get activated/executed
I created an instance and publish a message with timer expiry keys. if the timer expiry key is within 10 min of creating the worker then it works but if I pass like 20 min or 1 hr then the job is not executing.
Step 1 : Create instance
const result = await zbc.createProcessInstance({
bpmnProcessId: my_bpmn,
variables: {
order_id: 12345678,
},
version: 1,
});
Step 2 : Publish message with expiry keys
const requestBody = {
order_id: 12345678,
notifyTimer: R1/PT1200S,
PaymentTimerExpiry:PT1500S
};
const result = await zbc.publishStartMessage({
correlationKey: 'key',
name: 'messageName',
variables: requestBody,
});
Step 3: Create worker
// (Execute PaymentTimerExpiry)
zbc.createWorker({
taskType: "OrderExpiredReleaseProperty",
taskHandler: orderExpiredReleasePropertyhandler,
});
// (Execute notifyTimer)
zbc.createWorker({
taskType: "PaymentReminder",
taskHandler: PaymentReminder,
});
Any help is appreciated.
Thanks
Deepak