Is it possible to pass in custom meta data when scheduling a job? This would allow me to decide if a retry should be attempted or not, allowing it to be set when scheduling gives control back to the callee.
response = await rateLimiter.schedule( { retry: false, //this is a custom piece of meta data expiration: 15000, }, () => fetch(requestWithHeaders, requestOptions) );
Hi
Is it possible to pass in custom meta data when scheduling a job? This would allow me to decide if a retry should be attempted or not, allowing it to be set when scheduling gives control back to the callee.
response = await rateLimiter.schedule( { retry: false, //this is a custom piece of meta data expiration: 15000, }, () => fetch(requestWithHeaders, requestOptions) );
` rateLimiter.on('failed', async (error, jobInfo) => {
}
}); `