-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Describe the bug
According to the humio docs - polling is a single request that returns partial results from a query job.
The current behavior of the StaticQueryJob's poll is actually to continually poll until it receives the done message which is only actually sent when the job is completed. This causes issues since a request will take much longer than the actual timeout passed to this function.
that being said, the link that the client uses here is not what the API docs suggest (/dataspaces/{REPO} vs /repositories/{REPO}) which makes me think we might be using a legacy API, here?
Expected behavior
poll() should only make a request once. This method should actually be renamed to poll_until_completed or something
Metadata
Metadata
Assignees
Labels
No labels