Serve the latest autonomous snapshot

This commit is contained in:
Theodore Song
2026-08-21 17:17:22 -04:00
parent 6e6477a4e3
commit 84e0ef703b
7 changed files with 12 additions and 11 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ async function readGithubRuntimeState() {
const timeout = setTimeout(() => controller.abort(), 8000);
try {
const url = new URL(GITHUB_RUNTIME_STATE_URL);
url.searchParams.set("minute", String(Math.floor(Date.now() / 60000)));
url.searchParams.set("runtime", `${Date.now()}-${Math.random().toString(36).slice(2)}`);
const response = await fetch(url, {
cache: "no-store",
headers: { Accept: "application/json", "Cache-Control": "no-cache" },