diff --git a/jobs.js b/jobs.js index ef3b971..9b56906 100644 --- a/jobs.js +++ b/jobs.js @@ -17,7 +17,9 @@ const STEPS = ['website', 'contract', 'chain', 'scoring', 'factcheck']; const STEP_NAMES = { website: 'Reading the website', contract: 'Finding the contract', chain: 'Reading the chain', scoring: 'Scoring', factcheck: 'Fact-checking' }; const CONCURRENCY = Number(process.env.JOBS || 2); const CHAIN_BUDGET = Number(process.env.CHAIN_BUDGET_S || 420); -const WORK = () => path.join(process.env.DATA_DIR || path.join(__dirname, 'data'), 'work'); +// Scratch for chain scans lives OUTSIDE DATA_DIR: docstore.js routes every *.json read/write under DATA_DIR to MySQL, +// so evidence.json written there by scan.py was invisible to fs.readFileSync (ENOENT on staging, 2026-11-16). +const WORK = () => path.join(require('os').tmpdir(), 'wwi-work'); let running = 0; const queue = []; async function getCode(chain, a) {