No more than 1 job should be placed in the dispatch queue at a time
Issues: NARC-11
The number of HarvestJobs queue for processing should be minimized at a given time for the following reasons:
- When the HarvestJobManager is restarted, all queue jobs are resubmitted which will cause dublicate processing of the HarvestJobs
- Modifing HarvestDefinitions will not have an effect on queue jobs.
Test specification
Create 4 selektive harvest jobs
Create selective harvest and add domain |
Domain |
agilos.org |
Create selective harvest and add domain |
Domain |
mikis.dk |
Create selective harvest and add domain |
Domain |
agilis-software.dk |
Create selective harvest |
Domain |
kb.dk |
Activate all harvests |
Because only 2 selective harvesters (high-priority) are available, only 2 of the jobs should be started initially. one of the remaining jobs should be queued, and the last one should remain in state 'New' until a harvest finishs and the queue job is
Verify jobs are created |
JobIDs |
1,2,3,4 |
Verify jobs started |
Number |
2 |
Verify jobs submitted |
Number |
1 |
Verify jobs new |
Number |
1 |
Wait for the first job is done (with 5 minuts timeout)
Wait for next done job |
Timeout |
300 |
Verify jobs started |
Number |
2 |
Verify jobs submitted |
Number |
1 |
Verify jobs new |
Number |
0 |