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

hub: get_tasks_to_assign does not respect channel selection for awaited tasks #238

Open
lzaoral opened this issue Dec 11, 2023 · 0 comments

Comments

@lzaoral
Copy link
Contributor

lzaoral commented Dec 11, 2023

The query for awaited tasks does not take the worker channel into account at all:

# awaited tasks
for task in Task.objects.free().filter(awaited=True).order_by("-priority", "id")[:max_tasks]:
task_info = task.export(flat=False)
task_list.append(task_info)

See https://github.com/release-engineering/kobo/pull/237/files/d4c514b1ed0b2862021b5c34cd14e5ab89cbded3#r1419709869 for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant