Skip to content

origin cli: Fix the available slot count computation

Vincent Sellier requested to merge vsellier/swh-scheduler:queue_size into master

The get_available_slots method already returns the exact available slots in a queue so there is no need to recompute it with the current threshold. As a side effect, the queue_size was always 0 when there was no messages in the queue.

The behavior was also fixed when the queue does not exist, the max_lengh is returned if provided instead of the default MAX_NUM_TASKS

Merge request reports