Replies: 1 comment
-
I am not sure which console.log('job') you mean, but maybe sometimes this statement never is true? if (bot.id === botID) {
bot.sendMessageToUsers([chatID], message);
console.log('Welcome message sent successfully bull');
break;
} If you are new to Bull, it is probably better to use BullMQ -> https://bullmq.io Also, this is what chatGPT has to say about this:
Remember, debugging asynchronous operations, especially with job queues, can be tricky because of their nature of not executing linearly. Careful logging and error handling are key to identifying the root cause of such issues. |
Beta Was this translation helpful? Give feedback.
-
Hi! @manast I am new in bull, I am adding a new task in the code below
`
`
Еvery time it is output to the console 'Welcome message sent successfully'. Code below it is handler
`
`
but some times callback is calling and console.log('job) is output sometimes dont
Can you tell what I'm doing wrong
Beta Was this translation helpful? Give feedback.
All reactions