Skip to content

HistoryResponse iterator should be able to be traversed multiple times #126

@bmario

Description

@bmario

The following code should work:

c = HistoryClient(...)
await c.connect()
response = await c.history_raw_timeline(...)
data = [(timestamp, value) for timestamp, value in response]
assert len(data) > 0
data = [(timestamp, value) for timestamp, value in response]
assert len(data) > 0 # this fails :(

This makes MetricQ hard to use in jupyter notebooks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions