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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user