Skip to content

Commit

Permalink
Merge pull request #3796 from mcbennet/nxs_add_squeue_option
Browse files Browse the repository at this point in the history
Nexus: Add --user $USER to squeue command
  • Loading branch information
ye-luo authored Feb 3, 2022
2 parents 3eb53ee + 330e162 commit 8a6fe41
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nexus/lib/machines.py
Original file line number Diff line number Diff line change
Expand Up @@ -1574,9 +1574,12 @@ def query_queue(self,out=None):
#end for
elif self.queue_querier=='squeue': # contributed by Ryan McAvoy
if out is None:
extra = ''
if self.user is not None:
if isinstance(self.user,bool) and self.user==False:
extra = ''
elif self.user is not None:
extra = ' -u {}'.format(self.user)
else:
extra = ' --user=$USER'
#end if
out,err,rc = execute('squeue'+extra)
#end if
Expand Down

0 comments on commit 8a6fe41

Please sign in to comment.