Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

Commit

Permalink
The logic only gets more complicated
Browse files Browse the repository at this point in the history
  • Loading branch information
rcthomas committed Jun 28, 2020
1 parent bb26b27 commit 5fc3c46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jupyter-nersc/web-jupyterhub/nerscspawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ def check_role_staff(self, auth_state):
return False

def default_gpu_repo(self, auth_state):
for allocation in self.user_allocations(auth_state, ["nstaff", "m1759", "dasrepo", "gpu4sci"]):
# for allocation in self.user_allocations(auth_state, ["nstaff", "m1759", "dasrepo", "gpu4sci"]):
for allocation in self.user_allocations(auth_state):
for qos in allocation["userAllocationQos"]:
if qos["qos"]["qos"] == "gpu":
if qos["qos"]["qos"] in ["gpu", "gpu_special_m1759"]:
return allocation["computeAllocation"]["repoName"]
return None

Expand Down

0 comments on commit 5fc3c46

Please sign in to comment.