Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap Nomad API use of character offset for task logs #88

Open
ionosphere80 opened this issue Dec 3, 2018 · 1 comment
Open

Wrap Nomad API use of character offset for task logs #88

ionosphere80 opened this issue Dec 3, 2018 · 1 comment

Comments

@ionosphere80
Copy link

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.

@SwarnadeepC0
Copy link

Any workaround for it?

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

No branches or pull requests

2 participants