Skip to content

Commit

Permalink
Add celery task to purge a list of datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Feb 7, 2023
1 parent 5ef066f commit da57f8a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/galaxy/celery/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
ImportModelStoreTaskRequest,
MaterializeDatasetInstanceTaskRequest,
PrepareDatasetCollectionDownload,
PurgeDatasetsTaskRequest,
SetupHistoryExportJob,
WriteHistoryContentTo,
WriteHistoryTo,
Expand Down Expand Up @@ -84,6 +85,11 @@ def purge_hda(hda_manager: HDAManager, hda_id: int):
hda_manager._purge(hda)


@galaxy_task(ignore_result=True, action="completely removes a set of datasets from the object_store")
def purge_datasets(dataset_manager: DatasetManager, request: PurgeDatasetsTaskRequest):
dataset_manager.purge_datasets(request)


@galaxy_task(ignore_result=True, action="materializing dataset instance")
def materialize(
hda_manager: HDAManager,
Expand Down

0 comments on commit da57f8a

Please sign in to comment.