-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Functionality to Stop a Running Job on the Harvest Job Page #4897
Comments
We rewrite this to account for the gap created by marking jobs complete when they are in mid-run. My thinking is instead of doing complicated calculations to update current job progress, we:
We should discuss this as a team |
@btylerburton Your solution sounds like a hack (which it may not be), but I don't think I know the exact motivation for "stop" action. Also don't know what type of "job" this is and how it can be manually stopped otherwise. Some possible speculations:
In both of those cases, they don't necessarily care about the backend of how it works. But as a devops, totally don't want to kill things in a way that will create incomplete or bad data states (i.e. leftover data that needs to be cleaned up at some point). Skipping the complicated calculations to update current job progress sounds like a development tradeoff, but technical debt doesn't seem worth that decision. I think this ties to a different comment that I made, Main concern is data duplication that Data.gov has been struggling with for you-know-how-long. If the ADD-DELETE-MODIFIED paradigm still exists, that should drive this implementation too. If data should not be committed anywhere unless it's everywhere it needs to be whereby it can be searched and compared easily. Probably didn't help, but that's by 🪙🪙 P.S. Love the |
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: