Skip to content

Commit

Permalink
Sleep 100 ms before polling process
Browse files Browse the repository at this point in the history
This should be long enough for most shell commands and speed up the
average time to check a job's status.
  • Loading branch information
mvdbeek committed Jul 30, 2017
1 parent 1f2fa31 commit 330fe39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/galaxy/jobs/runners/util/cli/shell/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def execute(self, cmd, persist=False, timeout=DEFAULT_TIMEOUT, timeout_check_int
# poll until timeout

for i in range(int(timeout / timeout_check_interval)):
sleep(0.1) # For fast returning commands
r = p.poll()
if r is not None:
break
Expand Down

0 comments on commit 330fe39

Please sign in to comment.