INNER CODE UNIT · Python
attempt
simonw/simonw · build_readme.py:33
if status not in RETRYABLE_STATUS or attempt == MAX_RETRIES - 1:
raise
print(" GraphQL {} error, retrying...".format(status))
except requests.exceptions.RequestException:
if attempt == MAX_RETRIES - 1:
raise
print(" GraphQL network error, retrying...")
time.sleep(2**attempt)
TOKEN = os.environ.get("SIMONW_TOKEN", "")
OWNERS = "owner:simonw owner:dogsheep owner:datasette"
# How many hours back the scheduled (incremental) run looks at. The workflow
# runs hourly, so 3 hours gives a comfortable overlap in case a run is skipped.
INCREMENTAL_HOURS = 3
SKIP_REPOS = {