diff --git a/job_applier.mjs b/job_applier.mjs index 97b5291..85310f8 100644 --- a/job_applier.mjs +++ b/job_applier.mjs @@ -30,7 +30,7 @@ import { processTelegramReplies } from './lib/telegram_answers.mjs'; import { generateAnswer } from './lib/ai_answer.mjs'; import { APPLY_BETWEEN_DELAY_BASE, APPLY_BETWEEN_DELAY_JITTER, DEFAULT_MAX_RETRIES, - APPLY_RUN_TIMEOUT_MS, PER_JOB_TIMEOUT_MS + APPLY_RUN_TIMEOUT_MS, PER_JOB_TIMEOUT_MS, RATE_LIMIT_COOLDOWN_MS } from './lib/constants.mjs'; const DEFAULT_ENABLED_APPLY_TYPES = ['easy_apply', 'wellfound']; @@ -51,7 +51,6 @@ async function main() { const formFiller = new FormFiller(profile, answers, { apiKey, answersPath }); const startedAt = Date.now(); - const RATE_LIMIT_COOLDOWN_MS = 6 * 60 * 60 * 1000; // 6 hours const rateLimitPath = resolve(__dir, 'data/linkedin_rate_limited_at.json'); const results = { submitted: 0, failed: 0, needs_answer: 0, total: 0, diff --git a/lib/constants.mjs b/lib/constants.mjs index 16d8220..6f5c37a 100644 --- a/lib/constants.mjs +++ b/lib/constants.mjs @@ -91,3 +91,4 @@ export const DEFAULT_MAX_RETRIES = 2; // --- Run limits --- export const APPLY_RUN_TIMEOUT_MS = 45 * 60 * 1000; // 45 minutes export const PER_JOB_TIMEOUT_MS = 10 * 60 * 1000; // 10 minutes per job +export const RATE_LIMIT_COOLDOWN_MS = 6 * 60 * 60 * 1000; // 6 hours