Add dedicated 'closed' status for listings no longer accepting applications

Distinguishes closed listings from missing apply buttons. Shows in summary
as a separate line item.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 13:23:39 -08:00
parent 97aa8472aa
commit 094824abb2
4 changed files with 11 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ export async function apply(page, job, formFiller) {
}).catch(() => false);
if (closed) {
console.log(` Job closed — no longer available`);
return { status: 'skipped_no_apply', meta };
return { status: 'closed', meta };
}
const applyBtn = page.locator('a:has-text("Apply"), button:has-text("Apply Now"), a:has-text("Apply Now")').first();