refresh_setlist_cache
Fetch and cache an artist's complete concert history from setlist.fm for instant offline analysis, with retries for failed pages.
Instructions
Fetch an artist's complete concert history from setlist.fm and cache it locally as JSON, so song/tour analysis runs instantly and offline.
Robust against setlist.fm's intermittent failures: each page is retried with backoff, and any page that still fails is recorded rather than aborting the whole run. King Crimson's history is fixed (band ended 2021), so this rarely needs re-running. Requires SETLISTFM_API_KEY.
Args: artist_mbid: MusicBrainz artist MBID. Defaults to King Crimson. max_pages: Safety cap on pages to fetch (20 shows/page). max_retries: Retries per page on transient error before recording it failed. force: Re-fetch even if a cache file already exists.
Returns: A summary dict (not the setlists themselves): counts, coverage, any failed pages, date range, and the cache file path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| max_pages | No | ||
| artist_mbid | No | b38225b8-8e5f-42aa-bcdc-7bae5b5bdab3 | |
| max_retries | No |