mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-25 12:35:15 -04:00
precommit: Increase timeout and reduce num_workers
This commit is contained in:
parent
1ad933c00c
commit
dc98efcbef
2 changed files with 3 additions and 3 deletions
|
|
@ -47,7 +47,7 @@ def main():
|
|||
"-j",
|
||||
"--num_workers",
|
||||
type=int,
|
||||
default=min(32, os.cpu_count() + 4), # copied from ThreadPoolExecutor
|
||||
default=min(16, os.cpu_count() + 2),
|
||||
help="number of parallel workers",
|
||||
)
|
||||
parser.add_argument(
|
||||
|
|
@ -235,7 +235,7 @@ def run_analyze_src(fn):
|
|||
|
||||
|
||||
# ======================================================================================
|
||||
def run_local_tool(*cmd, timeout=10):
|
||||
def run_local_tool(*cmd, timeout=20):
|
||||
p = subprocess.run(cmd, timeout=timeout, stdout=PIPE, stderr=STDOUT)
|
||||
if p.returncode != 0:
|
||||
raise Exception(p.stdout.decode("utf8"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue