python-nomad icon indicating copy to clipboard operation
python-nomad copied to clipboard

Wrap Nomad API use of character offset for task logs

Open ionosphere80 opened this issue 6 years ago • 1 comments

For reading task logs (e.g., stdout/stderr), the Nomad API endpoint only supports passing an offset in characters instead of lines which makes implementation rather difficult. To ease implementation, the library should probably support returning a generator for iterating through each line in a particular log. The latter might also help enable using the follow option which currently keeps the requests session open and prevents assignment of the output to a variable. Also, attempting to use the follow option with a particularly large log leads to a traceback, likely due to a requests buffer filling up.

ionosphere80 avatar Dec 03 '18 20:12 ionosphere80

Any workaround for it?

SwarnadeepC0 avatar May 21 '21 06:05 SwarnadeepC0