ConductScience Sequences
Contents

Installation guide · Records and upkeep

How long records are kept

Keep records until their owners delete them, or for a number of days.

Records stay until their owners delete them, unless BIOSEQUENCE_RETENTION_DAYS is set. Set to a number of days from 1 to 36,500, it removes these once they are that many days old, counted from when they finished:

  • Searches that no case holds, with their exact alignments.
  • Portfolio exports.
  • Combined searches and batches, each whole once all its searches are that old and no case holds any of them.

A search a case holds stays, and so do the search a watch follows and the watch's latest run. Listings, saved sequences, watches, multiple alignments, attached databases and cases stay: people delete them on the page, and an admin deletes a case as below. The service looks when it starts and then every hour, and the audit log notes each look that removed something, with the count of each kind and their bytes. The usage page counts the work still on the server, so a search that was removed no longer counts.

An admin deletes a case with its searches through the API, with an admin's API token (see API tokens for programs):

curl -X DELETE -H "Authorization: Bearer <token>" "https://sequences.example.org/api/admin/cases/<case ID>"

It deletes the case's claims, plan, runs, decisions, notes, reports, log and imported result files, every search its plan ran, and each search added to it that no other case holds. A search still running is cancelled first, and a case the claims model is reading answers 409 until the model has answered. Listings stay. A deletion cannot be undone. The audit log keeps a case.deleted event with the case's ID, its owner, the number of events in its log and the SHA-256 of the last one, the count of searches deleted and their bytes. Only the people in BIOSEQUENCE_ADMINS can delete a case, and with sign-in off the address does not exist.

Guide version 1.63.0 · For Sequences 0.155.0