Skip to content

Commit 700eb02

Browse files
authored
Merge pull request #6946 from cylc/8.5.x-sync
🤖 Merge 8.5.x-sync into master
2 parents 47797c6 + 0e257f9 commit 700eb02

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cylc/flow/remote.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,10 @@ def get_proc_ancestors():
7979
def watch_and_kill(proc):
8080
"""Kill proc if my PPID (etc.) changed - e.g. ssh connection dropped."""
8181
gpa = get_proc_ancestors()
82+
# Allow customising the interval to allow tests to run faster:
83+
interval = float(os.getenv('CYLC_PROC_POLL_INTERVAL', 60))
8284
while True:
83-
sleep(60)
85+
sleep(interval)
8486
if proc.poll() is not None:
8587
break
8688
if get_proc_ancestors() != gpa:

tests/functional/cylc-cat-log/12-delete-kill.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ __EOF__
3333
log_file="${WORKFLOW_RUN_DIR}/log/foo.log"
3434
echo "Hello, Mr. Thompson" > "$log_file"
3535

36+
export CYLC_PROC_POLL_INTERVAL=0.5
37+
3638
TEST_NAME="${TEST_NAME_BASE}-delete"
3739
cylc cat-log --mode=tail "$WORKFLOW_NAME" -f foo.log 2>&1 &
3840
cat_log_pid="$!"

0 commit comments

Comments
 (0)