Skip to content

Commit

Permalink
fixing queue selection
Browse files Browse the repository at this point in the history
  • Loading branch information
dapineyro committed Mar 20, 2024
1 parent 12296b7 commit c123c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudos/queue/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def fetch_job_queue_id(self, workflow_type, batch=True, job_queue=None):
if len(available_queues) == 0:
raise Exception(f'[ERROR] There are no available job queues for {workflow_type} ' +
'workflows. Consider creating one using CloudOS UI.')
default_queue = [q for q in available_queues if q['isDefault'] == 'TRUE']
default_queue = [q for q in available_queues if q['isDefault']]
if len(default_queue) > 0:
default_queue_id = default_queue[0]['id']
default_queue_name = default_queue[0]['label']
Expand Down

0 comments on commit c123c29

Please sign in to comment.