Skip to content
  • Vincent Sellier's avatar
    origin cli: Fix the available slot count computation · 698fb5d8
    Vincent Sellier authored
    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
    698fb5d8