dolphinscheduler
dolphinscheduler copied to clipboard
[Bug] [dolphinscheduler-server] When a worker group goes down,High-priority tasks for this workgroup will block the queue(TaskPriorityQueueImpl)
Search before asking
- [X] I had searched in the issues and found no similar issues.
What happened
Suppose there are three workgroups, namely default1, default2, default3. When all the machines in the workgroup default1 go down, the high-priority tasks of the default1 workgroup will always be retried in the queue, trying to find machines to execute, other workgroups The low-priority tasks will be blocked all the time.
What you expected to happen
After all the machines in a work group are down, it will not block the scheduling of other work group tasks
How to reproduce
Divide the task distribution queue into two. When a task cannot find a work group, it is put into another queue, and the other queue is consumed by a dedicated thread.The code screenshot is as follows:

Anything else
No response
Version
1.3.6
Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Hi:
- Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
- In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
- If you haven't received a reply for a long time, you can subscribe to the developer's email,Mail subscription steps reference https://dolphinscheduler.apache.org/en-us/community/development/subscribe.html ,Then write the issue URL in the email content and send question to [email protected].