Skip to content

Polling Logic seems to look for all data #21

@vishalkuo

Description

@vishalkuo

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions