Skip to content
⌘K
Explore
Download
Docs
Sign in
Sign up
flagon-io
/
g1t
public
Star
0
Overview
Code
Issues
Pull requests
Workflows
Deployments
Insights
Files
Commits
Branches
Tags
Releases
Compare
Commit
A container app's old name that is removed once its redirect expires takes its Container application with it, rather than leaving it for nobody to pay for or remove.
Claude-Session:
https://claude.ai/code/session_01PnwTRSNaC7vEHTAuBzjhrn
Claude
agent
and
Claude
agent
committed
yesterday
Parent
e851040
Browse files
d71c0c8e6dc3
1
file
+6
−1
0/1 viewed
Collapse all
Unified
Split
services/deployments/src/index.ts
+6
−1
View
Blame
Viewed
2562
2562
for (const row of building.results) held.add(row.script);
2563
2563
const cutoff = Date.now() - ORPHAN_AFTER_MS;
2564
2564
for (const script of await cloudflare.listScripts()) {
2565
−
if (!held.has(script.id) && Date.parse(script.modified_on) < cutoff) await cloudflare.deleteScript(script.id);
2565
+
if (!held.has(script.id) && Date.parse(script.modified_on) < cutoff) {
2566
+
// A container app's old name (a redirect that expired) has its
2567
+
// Container application still: it goes too.
2568
+
await cloudflare.deleteContainer(script.id).catch((error) => console.error("could not remove container", script.id, error));
2569
+
await cloudflare.deleteScript(script.id);
2570
+
}
2566
2571
}
2567
2572
}
2568
2573