Persist general specification analysis and expose saved results
This commit is contained in:
@@ -83,3 +83,11 @@ test('cancel during source fetch rejects late source, and empty resolution remai
|
||||
assert.deepEqual(await resolveAiJobInput(retry,()=>assert.fail('must not refetch'),jobs.pinAiJobInput),input);
|
||||
jobs.cancelAiJob('source-owner',empty.id);
|
||||
});
|
||||
|
||||
test('general analysis jobs are indexed by tender for recovery',()=>{
|
||||
const job=jobs.createAiJob('analysis-owner','request-analysis','analiz',{tender:{ikn:'2026/777'},text:'Analiz kaynağı '.repeat(5)});
|
||||
assert.equal(job.ikn,'2026/777');
|
||||
assert.equal(jobs.listAiJobs('analysis-owner','2026/777')[0].id,job.id);
|
||||
assert.equal(jobs.listAiJobs('analysis-owner','2026/778').length,0);
|
||||
jobs.cancelAiJob('analysis-owner',job.id);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user