In order to manage our scheduled jobs, datagovteam wants the load manager to schedule new CRON jobs based on the harvest source config's desired frequency.
Team has discussed proactively writing the time to kick off the next job for a harvest source at the time that a job is picked up (CKAN does it this way). This would require a new "nextJobScheduled" field added to HarvestJob table.
Acceptance Criteria
[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]
[ ] GIVEN a valid harvest source with a desired harvest frequency
WHEN that time has elapsed
THEN a new job should be started
[ ] GIVEN a valid harvest source with a desired harvest frequency
WHEN I change that harvest frequency
THEN (if using nextJobScheduled pattern) the system should respond by updating the nextJobScheduled time based on the updated frequency.
Background
[Any helpful contextual notes or links to artifacts/evidence, if needed]
User Story
In order to manage our scheduled jobs, datagovteam wants the load manager to schedule new CRON jobs based on the harvest source config's desired frequency.
Team has discussed proactively writing the time to kick off the next job for a harvest source at the time that a job is picked up (CKAN does it this way). This would require a new "nextJobScheduled" field added to HarvestJob table.
Acceptance Criteria
[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]
[ ] GIVEN a valid harvest source with a desired harvest frequency WHEN that time has elapsed THEN a new job should be started
[ ] GIVEN a valid harvest source with a desired harvest frequency WHEN I change that harvest frequency THEN (if using
nextJobScheduled
pattern) the system should respond by updating the nextJobScheduled time based on the updated frequency.Background
[Any helpful contextual notes or links to artifacts/evidence, if needed]
Security Considerations (required)
[Any security concerns that might be implicated in the change. "None" is OK, just be explicit here!]
Sketch