Unverified Commit 2c0401b2 authored by Dannon's avatar Dannon Committed by GitHub
Browse files

Merge pull request #10825 from nsoranzo/release_20.01_fix_10824

[20.01] Cast `ncores` to str for `subprocess.call()`
parents 693191b1 5fe9c915
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -437,7 +437,7 @@ class S3ObjectStore(ObjectStore, CloudConfigMixin):
                log.debug("Parallel pulled key '%s' into cache to %s", rel_path, self._get_cache_path(rel_path))
                ncores = multiprocessing.cpu_count()
                url = key.generate_url(7200)
                ret_code = subprocess.call(['axel', '-a', '-n', ncores, url])
                ret_code = subprocess.call(['axel', '-a', '-n', str(ncores), url])
                if ret_code == 0:
                    return True
            else: