You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you start getting API key authentication errors for example it's probably best to cancel the whole run rather than trigger the same error for every following batch.
Maybe this:
fromdatasette_enrichmentsimportCancelExceptionraiseCancelException("Run cancelled due to API authentication error")
The text was updated successfully, but these errors were encountered:
simonw
changed the title
Should be an exception you can raise that cancels the run
Should be an exception you can raise that cancels or pauses the run
Jan 14, 2025
The case for a "pause" exception is for something like the LLM enrichments where tokens might run out (or rate limits hit) - at which point the plugin could pause the enrichment run and wait for the user to top up.
If you start getting API key authentication errors for example it's probably best to cancel the whole run rather than trigger the same error for every following batch.
Maybe this:
The text was updated successfully, but these errors were encountered: