Skip to content
Snippets Groups Projects
Commit cf9f7212 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[backend] Only print debug message if there are splits to schedule

parent 797e3418
No related branches found
No related tags found
1 merge request!194Scheduler
......@@ -196,12 +196,14 @@ def schedule():
sorted_queues = Queue.objects.order_by('-cores_per_slot',
'max_slots_per_user')
logger.debug('Ordered queues: %s',
','.join([k.name for k in sorted_queues]))
splits_to_consider = \
[_select_splits_for_queue(q) for q in sorted_queues]
if not any(splits_to_consider): return []
logger.debug('Ordered queues: %s',
','.join([k.name for k in sorted_queues]))
# decides which split to run considering the 'on-the-fly' availability
# workers that can run job splits
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment