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

Bulk Operations: ensure consistent purged state #13889

Closed
davelopez opened this issue May 8, 2022 · 3 comments · Fixed by #13935
Closed

Bulk Operations: ensure consistent purged state #13889

davelopez opened this issue May 8, 2022 · 3 comments · Fixed by #13935

Comments

@davelopez
Copy link
Contributor

davelopez commented May 8, 2022

It seems directly purging datasets through the bulk operations endpoint does not ensure the dataset is also flagged as deleted for consistency. It does, checked now with a test.
Also:

  • Make sure that trying to undelete a purged dataset does not have any effect.
  • Purging already purged datasets will have no effect (and we shouldn't expect a history change).
  • Purging a dataset_collection should purge all its contents.
@mvdbeek
Copy link
Member

mvdbeek commented May 9, 2022

As a note,

does not ensure the dataset is also flagged as deleted for consistency.

that might happen in Celery at any point after the request. I'm not sure how you want to deal with this, but that's probably an important gotcha. Set enable_celery_tasks: true in galaxy.yml and start Galaxy with run.sh to see that behavior.

@davelopez
Copy link
Contributor Author

that might happen in Celery at any point after the request.

is it a really really bad idea to flag the items as deleted and purged in the database before offloading the actual purge task to celery? :trollface:
that way we don't even need to wait for the celery task to finish to return from Processing... status.

@mvdbeek
Copy link
Member

mvdbeek commented May 10, 2022

is it a really really bad idea to flag the items as deleted and purged in the database before offloading the actual purge task to celery? :trollface:

No, I think that would be fine, although from the backend perspective ideally all of this would happen in Celery (deleting and purging).

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

Successfully merging a pull request may close this issue.

2 participants