-
Notifications
You must be signed in to change notification settings - Fork 54
Description
A use case for flux job attach
to a running job is for users to occasionally attach and interact with a job that has a cli type interface. However, currently flux job attach
always emits all previous output that is in the eventlog, and this can get annoying if the job has been running for a long time with a lot of output.
It would therefore be useful to add an option to flux job attach
to only display the last bit of output. The command would likely still need to process all the data since I don't think there's a way to "tail" an eventlog from the KVS, but it would only actually display the most recent bit. Actually implementing this could be slightly challenging since I'm not sure if there's a way to tell when you've "caught up" when watching an eventlog.