Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Excerpt

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 for agilos.org

Domain

bs.dk

Create selective harvest and add domain for mikis

Domain

dbc.dk

Create selective harvest and add domain for agilis-software

Domain

netarkivet.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 pr. HIGH_PRIORITY harvester). The remaining two jobs should remain in state 'New' until a harvest finishs and the next job is started.

Verify jobs exist are created

JobIDs

1,2,3,4

Verify jobs started

Number of jobs

2

Verify jobs new

Number of jobs

2

Wait for the first job is done (with 5 minutes timeout)

Wait for next done job

Timeout

300

Verify jobs started

Number

2

Verify jobs new

Number

1

Verify Jobs done

Number

1