Skip to content

Retry cat-log on unreachable platform hosts - #7415

Open
tomatotomata wants to merge 1 commit into
cylc:masterfrom
tomatotomata:codex/cat-log-intelligent-host-selection-4263
Open

Retry cat-log on unreachable platform hosts#7415
tomatotomata wants to merge 1 commit into
cylc:masterfrom
tomatotomata:codex/cat-log-intelligent-host-selection-4263

Conversation

@tomatotomata

Copy link
Copy Markdown

Closes #4263

cylc clean now retries another configured host when SSH returns 255. cylc cat-log should follow the same platform host-selection behavior for remote job logs.

This change selects a host explicitly, retries only SSH failures, and preserves the existing process return behavior for directory listing mode. It also adds a regression test and a towncrier note.

Tests:

  • python -m py_compile cylc/flow/scripts/cat_log.py tests/unit/scripts/test_cat_log.py
  • The focused pytest could not run in my Windows environment because Cylc imports the Unix-only pwd module; CI should exercise it on the supported Unix platforms.

I was thinking of keeping the retry at this boundary so other remote command callers are not changed by accident. Let me know what you think.

Signed-off-by: ahmad <ahmadalgaidy@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Intelligent Host Selection - Clean & Cat-Log

1 participant