Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Asynq task didn't got processed by the worker even after many hours of getting picked up #907

Open
gautam-tiwari opened this issue Aug 1, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@gautam-tiwari
Copy link

Describe the bug

  • I have build an application in golang with uses asynq.
  • I have around 80-100 workers and 4 queues.
  • For the past few weeks I have been encountering an issue in which the asynq worker picks up the tasks(as the state of the task is active) but it doesn't get processed.
  • Even when the workers are free it doesn't gets picked up.

To Reproduce
Steps to reproduce the behavior (Code snippets if applicable):

  1. Implement 4 different queues and about 80-100 workers.
  2. Set the priority of the queues as 5, 7, 10 and 10.
  3. Tasks should be such that they would take an average of 5 minutes per task.
  4. Enqueue a lot of tasks(around 5000) related to the least priority queue.
  5. Enqueue lesser tasks(around 1000) releated to high priority queue.
  6. Then observe that a few tasks of the low priority queue won't even get picked up.

Expected behavior

  • Workers should pick up the task even it is of low priority after a certain amount of time.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS:Linux
  • Version of asynq package v0.24.1

Additional context

  • One of the other possiblities would be that the workers picked up the task processed it but the redis key didn't got updated.
@gautam-tiwari gautam-tiwari added the bug Something isn't working label Aug 1, 2024
@of89013
Copy link

of89013 commented Aug 22, 2024

我估计我的错误也是这个情况

@gautam-tiwari
Copy link
Author

Hi @of89013 How is that so?

@gautam-tiwari
Copy link
Author

gautam-tiwari commented Aug 22, 2024

There also exists one issue where the "msg" subkey inside the redis asynq key map gets lost somehow. I'll attach a ss for reference.

Invalid asynq key(missing msg field)

Screenshot 2024-08-16 at 1 35 40 PM

Valid asynq key

Screenshot 2024-08-22 at 10 45 37 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants