You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Agenda for job queue, please advise how to stop the execution of an async task if timeout is reached and delete it from the database Let's say we have a code example :
agenda.define('processMessage', { concurrency: 1 }, async (task, done) => {
try {
const { contexts } = task.attrs.data;
const message_id = contexts.callbackQuery.message.reply_to_message.message_id;
const id = contexts.callbackQuery.message.reply_to_message.from.id;
Using Agenda for job queue, please advise how to stop the execution of an async task if timeout is reached and delete it from the database Let's say we have a code example :
agenda.define('processMessage', { concurrency: 1 }, async (task, done) => {
try {
const { contexts } = task.attrs.data;
const message_id = contexts.callbackQuery.message.reply_to_message.message_id;
const id = contexts.callbackQuery.message.reply_to_message.from.id;
});
At what point should I check for exceeding the time limit for this task? I can't know exactly at which point it stops the process.😰
The text was updated successfully, but these errors were encountered: