Skip to content

cron_delete

Tiago Jesu edited this page Oct 24, 2018 · 2 revisions

cron_delete.py

cron_delete.py is a special script which is executed in the background each time the application is started (run.py <database_name>). This will be always running if the application is also running. This script assures that entries in two different database tables are regularly checked for their timestamp, i.e., allow to regularly clean these database without any developer interaction (fully automated).

Periodicity of database clean up:

This script will e executed one time per day and will clean two tables (url_database and fasta_database), which have different life times for their entries.

Life time of database entries:

  • url_database: entries older than 1 day will be removed from the database.
  • fasta_database: entries older than 15 minutes will be removed from the database.
Clone this wiki locally