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

cron job for deleting temp files #1217

Open
CBroz1 opened this issue Jan 30, 2025 · 0 comments
Open

cron job for deleting temp files #1217

CBroz1 opened this issue Jan 30, 2025 · 0 comments
Labels
Database Issues with Frank Lab database, not Spyglass code

Comments

@CBroz1
Copy link
Member

CBroz1 commented Jan 30, 2025

Is your feature request related to a problem? Please describe.

Currently, we have use a temp directory for the following...

  1. decoding.v1.waveform_features: spikeinterface's extract_waveforms
  2. spikesorting.v0.spikesorting_sorting: spikeinterface's run_sorter
  3. spikesorting.v1.metric_curation: spikeinterface's extract_waveforms
  4. spikesorting.v1.sorting: spikeinterface's run_sorter
  5. position.v1.dlc_utils_makevid: store frames before assembling into video

... but no process that cleans up these files. Some spikesorting processes use a uuid from the key that would change if deleted and rerun. We expect disk space to eventually be an issue, and this is an easy place to save the end-user from making tougher decisions.

Describe the solution you'd like

A cron job that deletes files with a modification timestamp older than 7 days, and documentation for setting up this cron job.

Describe alternatives you've considered

Manual intermittent deletion.

Additional context

n/a

@CBroz1 CBroz1 added the Database Issues with Frank Lab database, not Spyglass code label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Database Issues with Frank Lab database, not Spyglass code
Projects
None yet
Development

No branches or pull requests

1 participant