Skip to content

Commit

Permalink
Add short sleep to remote tidy
Browse files Browse the repository at this point in the history
Avoid maxing out CPU!
  • Loading branch information
MetRonnie committed Oct 13, 2021
1 parent bfe5e8f commit 3a7321b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cylc/flow/task_remote_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import re
from subprocess import Popen, PIPE, DEVNULL
import tarfile
from time import time
from time import sleep, time
from typing import Any, Deque, Dict, TYPE_CHECKING, List, NamedTuple, Tuple

from cylc.flow import LOG, RSYNC_LOG
Expand Down Expand Up @@ -344,6 +344,7 @@ def construct_remote_tidy_ssh_cmd(
item.proc.args, item.proc.returncode, out, err
)
)
sleep(0.1)
# Terminate any remaining commands
for item in queue:
with suppress(OSError):
Expand Down

0 comments on commit 3a7321b

Please sign in to comment.