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

Add job cancel / delete route #37

Closed
sverhoeven opened this issue Jan 25, 2023 · 0 comments · Fixed by #91
Closed

Add job cancel / delete route #37

sverhoeven opened this issue Jan 25, 2023 · 0 comments · Fixed by #91

Comments

@sverhoeven
Copy link
Member

As a someone who submitted a job to the web service I would like to get rid of the job.
Job can be in different states:

  • Cancel a queued job -> remove job from scheduler + remove job directory + remove job from db
  • Stop a running job -> remove job from scheduler + remove job directory + remove job from db
  • Cleanup a completed job -> remove job directory + remove job from db

This would entail creating DELETE /api/job/{jobid} route.

Instead of removing job completely we could mark job as cancelled in db and retain the job directory.

Do we want to distinguish between cancelling a job in the scheduler or deleting it from the web service? Create route to cancel job and a route to delete job.

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.

1 participant