Separate authored canvases from post snapshots and unify linked skill documentation
PROMPT Docker CI and deployment / verify-and-deploy (push) Failing after 24m58s
PROMPT Docker CI and deployment / verify-and-deploy (push) Failing after 24m58s
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
const slugs=['learning-skills-notes','learning-skills-teaching','learning-skills-english'];
|
||||
for(let attempt=0;attempt<120;attempt++){
|
||||
const states=await Promise.all(slugs.map(async slug=>{const r=await fetch('http://127.0.0.1:3000/api/posts/'+slug+'/snapshots');if(!r.ok)throw Error('Screenshot state unavailable');return r.json()}));
|
||||
const failed=states.find(s=>s.job?.status==='failed');if(failed)throw Error(failed.job.error||'Screenshot generation failed');
|
||||
if(states.every(s=>s.job?.status==='ready'&&s.job.revision===process.env.RELEASE_SHA&&s.pages.length===8&&s.pages.every(p=>p.revision===process.env.RELEASE_SHA))){console.log('Verified 24 current server-rendered page snapshots');process.exit(0)}
|
||||
await new Promise(r=>setTimeout(r,2000));
|
||||
}
|
||||
throw Error('Screenshot publication timed out');
|
||||
Reference in New Issue
Block a user