In order to be able to cancel a pending job or stop a running job, data.gov harvester admins want a cancel option.
Acceptance Criteria
[ ] GIVEN a job/id/cancel route is defined \
WHEN the job/id/cancel route is called \
THEN the cloudfoundry task is destroyed \
AND a report is sent with the cancellation, and what completed \
AND evaluation is done for if new tasks/jobs should be started
This should respond with "canceling, watch email for status" or some such response.
Then, the cloudfoundry logic for cancelling the task should start.
Then, an email should notify the typical harvest source user group, and what syncing did happen (typical how many additions, updates, or deletes, and errors)
Finally, make sure to keep the harvester busy by kicking off any pending jobs.
User Story
In order to be able to cancel a pending job or stop a running job, data.gov harvester admins want a cancel option.
Acceptance Criteria
job/id/cancel
route is defined \ WHEN thejob/id/cancel
route is called \ THEN the cloudfoundry task is destroyed \ AND a report is sent with the cancellation, and what completed \ AND evaluation is done for if new tasks/jobs should be startedBackground
CKAN has a cancel process, we are imitating that.
Security Considerations (required)
None
Sketch
This should respond with "canceling, watch email for status" or some such response. Then, the cloudfoundry logic for cancelling the task should start. Then, an email should notify the typical harvest source user group, and what syncing did happen (typical how many additions, updates, or deletes, and errors) Finally, make sure to keep the harvester busy by kicking off any pending jobs.