Skip to content

Commit

Permalink
Update common_adapter.py
Browse files Browse the repository at this point in the history
add: shell=True for Command run

I want to use arguments for status_cmd, but they are not accepted if shell=True is not set.
An example is as follows:
_q_commands_override:
    submit_cmd: qsub
    status_cmd: qstat -q particular_queue.q
  • Loading branch information
yuuukuma authored Sep 8, 2022
1 parent 435936d commit 8d41058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fireworks/user_objects/queue_adapters/common_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def get_njobs_in_queue(self, username=None):

# run qstat
qstat = Command(self._get_status_cmd(username))
p = qstat.run(timeout=self.timeout)
p = qstat.run(timeout=self.timeout, shell=True)

# parse the result
if p[0] == 0:
Expand Down

0 comments on commit 8d41058

Please sign in to comment.