You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 thefollow
option with a particularly large log leads to a traceback, likely due to a requests buffer filling up.The text was updated successfully, but these errors were encountered: