Skip to content
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

API: Cancel a batch operation #1276

Closed
3 tasks
srindom opened this issue Mar 29, 2022 · 1 comment
Closed
3 tasks

API: Cancel a batch operation #1276

srindom opened this issue Mar 29, 2022 · 1 comment
Assignees

Comments

@srindom
Copy link
Collaborator

srindom commented Mar 29, 2022

Cancels an operation that is in progress.

POST /admin/batch/:id/cancel

DoD

  • endpoint should be idempotent - e.g. calling cancel on an already canceled job is allowed and responds with 200
  • BatchJobs in a completed state should not be cancelable - should fail with 422
  • Should call BatchJobService.cancel; which in turn potentially cancels the jobs in the worker that are currently being processed.
@olivermrbl olivermrbl linked a pull request May 8, 2022 that will close this issue
@olivermrbl olivermrbl changed the title API: Cancel a batch operation Cancel a batch operation May 8, 2022
@olivermrbl olivermrbl changed the title Cancel a batch operation API: Cancel a batch operation May 8, 2022
@olivermrbl
Copy link
Contributor

Solved in #1379

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants