Audit fixes: remove dead code, fix run timeout bug, add log tee to all entry points

- Remove unused APPLY_PRIORITY array (replaced by score-based sort)
- Fix run timeout only breaking inner loop — now breaks outer platform loop too
- Remove dead lastProgress variable in easy_apply step loop
- Add stdout/stderr log tee to job_searcher, job_filter, telegram_poller

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 12:13:01 -08:00
parent 9e6b9beb17
commit 51ca354c52
5 changed files with 27 additions and 7 deletions

View File

@@ -211,7 +211,6 @@ export async function apply(page, job, formFiller) {
}
// Step through modal
let lastProgress = '-1';
let samePageCount = 0;
for (let step = 0; step < LINKEDIN_MAX_MODAL_STEPS; step++) {
const modalStillOpen = await page.$(MODAL);
@@ -297,7 +296,6 @@ export async function apply(page, job, formFiller) {
} else {
samePageCount = 0;
}
lastProgress = newProgress;
continue;
}
@@ -310,7 +308,6 @@ export async function apply(page, job, formFiller) {
console.log(` [step ${step}] clicking Review`);
await reviewBtn.click({ timeout: APPLY_CLICK_TIMEOUT }).catch(() => {});
await page.waitForTimeout(CLICK_WAIT);
lastProgress = progress;
samePageCount = 0;
continue;
}