duneanalytics / dune-client

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

Introduce fix to archive failed queries on run_sql call #110

Closed antonio-mendes closed 8 months ago

antonio-mendes commented 8 months ago

Hey hey!

I reported it on Slack, but basically I ran into a case where when using the run_sql query call, if the query fails we do not archive it. This resulted in me creating a bunch of broken queries and hitting the "private query limit" on the Dune account.

I've tried to introduce a simple fix here, but not 100% sure if this might be present elsewhere in the code.

🚀 keep up the amazing work