Skip to content

swan-cern: filter the free gpu display in case of concurrent session request #402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

laurall974
Copy link
Contributor

No description provided.

@laurall974 laurall974 self-assigned this Aug 5, 2025
@laurall974 laurall974 requested review from etejedor and PMax5 August 5, 2025 14:15
free_flavours = list(spawner.gpus.get_free_gpu_flavours().keys())

if spawner.LHCB_SWAN_ROLE in spawner.user_roles:
free_flavours = list(spawner.gpus.get_free_lhcb_gpu_flavours().keys())
Copy link
Contributor

Choose a reason for hiding this comment

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

I think I would be slightly in favour of pushing this down to the get_free_gpu method, perhaps by parameterizing it to make it receive the user roles. The get_free_gpu method should be the brains and hide this complexity from its callers.

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.

2 participants