diff --git a/openquake/baselib/parallel.py b/openquake/baselib/parallel.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/parallel.py
+++ b/openquake/baselib/parallel.py
@@ -841,9 +841,8 @@ def qsub(func, allargs, authkey=None):
     listener = Listener((host, 0), backlog=5, authkey=authkey)
     try:
         hostport = listener._listener._socket.getsockname()
-        subprocess.run(
-            ['qsub', '-b', 'y', '-t', '1-%d' % len(allargs),
-             sys.executable, thisfile, '%s:%d' % hostport])
+        subprocess.call(['qsub', '-b', 'y', '-t', '1-%d' % len(allargs),
+                         sys.executable, thisfile, '%s:%d' % hostport])
         conndict = {}
         for i, args in enumerate(allargs, 1):
             monitor = args[-1]
Used subprocess.call for compatibility with Python 2