Skip to content

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

@lzaoral

Description

@lzaoral

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions