You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement a feature on the Harvest Job Page that allows users to stop a running job. Upon cancelling, the backend should handle job cancellation by updating the job's status in the HarvestDB job table and associated error table, marking the job as 'error'.
Acceptance Criteria
Frontend:
Add a "Stop Job" button to the Harvest Job Page.
The button should be disabled for completed or already stopped jobs.
A confirmation modal should appear when the "Stop Job" button is clicked, asking the user to confirm the cancellation.
Backend:
On job cancellation, update the job's status in the harvest_job table to "error".
Update any relevant entries in the job_error table.
Ensure that any running processes tied to the job are properly terminated.
Return appropriate success or error responses to the frontend.
Testing:
Write unit and integration tests to verify that stopping a job updates both the job and error tables.
User Story
Implement a feature on the Harvest Job Page that allows users to stop a running job. Upon cancelling, the backend should handle job cancellation by updating the job's status in the HarvestDB job table and associated error table, marking the job as 'error'.
Acceptance Criteria
Frontend:
Backend:
Testing:
The text was updated successfully, but these errors were encountered: