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

Always delete associated jobs when deleting datasets #468

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stijn-uva
Copy link
Member

Currently deleting a dataset is not coupled with deleting jobs with a reference to that dataset. This is done when a dataset is deleted via the webtool, but in other cases dataset.delete() can be called and potentially leave orphaned jobs.

There is no scenario in which a job with a reference to a deleted dataset should exist and keep running, so this PR moves the logic for cleaning up those jobs into the dataset.delete() method.

It's a relatively simple change but worth testing properly, so doing this via a PR rather than a direct commit.

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 this pull request may close these issues.

1 participant