Skip to content

Destroying a DataladDataProvider should clean up associated DataladSystemSubset files #289

@prioux

Description

@prioux

When a DataladDataProvider is destroyed, it might leave behind in the database one or many userfiles of type DataladSystemSubset.

These userfiles represent caching information for the datalad dasets; they are registered in the ScratchDataProvider and the userfiles all have names like TopDatalad.rr=5.dp=411.

The name of the DataladSystemSubset is an encoding. The rr=ID is the ID of the remote resource where the cache is located (because ScratchDataProvider content it local to each CBRAIN resource). The dp=ID is the actual ID of the associated DataladDataProvider.

We need a cleaner callback that, when a DataladDataProvider is destroyed, would also destroy all its associated DataladSystemSubset userfiles. They would be recognized by the dp=ID part in their names.

These scratch userfiles can simply be destroyed even they are officially on another remote resource, because CBRAIN's data cache cleaner will erase the leftover files eventually.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions