Summary
Add a --follow / -f option to hpc job-output <id> that streams the running job's output, equivalent to tail -F.
Motivation
hpc wait blocks until completion but does not show output.
hpc job-output can only be used after the fact.
- For long-running jobs, watching progress (training loss, progress indicators) from the local side currently requires manually running
ssh myhpc tail -F /path/to/output.
Implementation notes
- A thin implementation that just streams
ssh ... tail -F <output_path> is sufficient.
- The output path can be pulled from
RunManager metadata or from the stdout/stderr paths assigned by the scheduler.
- While the job is pending, the target file does not yet exist (
tail -F retries, so this is largely a non-issue).
- Confirm that SSH closes cleanly when the user exits with Ctrl-C.
Priority
Low. ssh ... tail -F is a working substitute, so this can wait until it becomes a frequent need.
Summary
Add a
--follow/-foption tohpc job-output <id>that streams the running job's output, equivalent totail -F.Motivation
hpc waitblocks until completion but does not show output.hpc job-outputcan only be used after the fact.ssh myhpc tail -F /path/to/output.Implementation notes
ssh ... tail -F <output_path>is sufficient.RunManagermetadata or from the stdout/stderr paths assigned by the scheduler.tail -Fretries, so this is largely a non-issue).Priority
Low.
ssh ... tail -Fis a working substitute, so this can wait until it becomes a frequent need.