Skip to content

Conversation

@tdaede
Copy link
Collaborator

@tdaede tdaede commented Feb 7, 2022

No description provided.

@tdaede tdaede requested review from negge and tmatth February 7, 2022 19:30
free_slots_filtered = [slot for slot in free_slots if slot.arch == arch]
work_list_filtered = [work for work in work_list if work.arch == arch]
if len(work_list_filtered) != 0:
if len(free_slots_filtered) != 0:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: PEP-8 says you should just do:

if work_list_filtered:
   if free_slots_filtered:

work = work_list_filtered[0]
# search for image work if there is only one slot available
# allows prioritizing image runs without making scheduler the bottleneck
if len(free_slots_filtered) == 0:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

@vibhoothi vibhoothi mentioned this pull request Feb 16, 2024
@vibhoothi
Copy link
Collaborator

vibhoothi commented Feb 16, 2024

#160 supersedes this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants