duneanalytics / dune-client

A framework for interacting with Dune Analytics' officially supported API service
Apache License 2.0
85 stars 22 forks source link

Add Terminal States to Refresh Logic. #18

Closed bh2smith closed 2 years ago

bh2smith commented 2 years ago
    here we should wait for the execution to complete, cancel or fail
        # these are the 3 terminal states of an execution
        terminal_states = (
            "QUERY_STATE_COMPLETED",
            "QUERY_STATE_FAILED",
            "QUERY_STATE_CANCELLED",
        )

_Originally posted by @msf in https://github.com/cowprotocol/dune-client/pull/17#discussion_r980119616_