Fix process not exiting after run, detect closed job listings
- All entry points with log tee now call logStream.end() + process.exit() (log stream kept event loop alive, blocking next cron run) - easy_apply: detect "no longer accepting applications" and similar closed listing text before reporting as unsupported Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -299,7 +299,9 @@ async function main() {
|
||||
}
|
||||
}
|
||||
|
||||
main().catch(err => {
|
||||
main().then(() => {
|
||||
logStream.end(() => process.exit(0));
|
||||
}).catch(err => {
|
||||
console.error('Fatal:', err.message);
|
||||
process.exit(1);
|
||||
logStream.end(() => process.exit(1));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user