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

Clean up manifest files for sessions that never generated any trials #740

Open
alexpiet opened this issue Oct 2, 2024 · 2 comments
Open
Assignees

Comments

@alexpiet
Copy link
Collaborator

alexpiet commented Oct 2, 2024

Since we now create the manifest file at the start of the session, if a session does not complete a single trial, then it will not have any data to upload (so we don't care about it), and there will be no metadata files (so it won't upload).

In this case we should simply delete the manifest file. We don't have a policy of when we delete data of the acquisition computer, so that isn't a problem yet.

We probably want to implement this as a stand alone script that we set up with Task manager.

  • Once a day, at like 8pm, we check if all the manifests have the .json file that stores all the data. If not, delete the manifest. We probably should also check that the .json file contains trials.
  • Alternatively, we could just check when the session ends. If no trials completed, delete the upload manifest. (I think this it the better option)
  • We could potentially wait to implement this. Its not clear to me how often this happens
@alexpiet
Copy link
Collaborator Author

alexpiet commented Oct 7, 2024

This happens frequently enough that we should address it. It looks like someone is starting sessions then immediately stopping them?

@alexpiet
Copy link
Collaborator Author

alexpiet commented Oct 7, 2024

context: I think what is happening is users are stopping the session because the mouse ID is wrong. 100% of the time this happens, the mouse ID has been entered wrong

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

No branches or pull requests

2 participants