deb-glance/glance/db
GeetikaBatra 38563b0555 Add a soft delete functionality for tasks.
Currently there is no mechanism for deleting tasks on regular basis.
This patch adds a new function that is called in the tasks_get_all
function, so that everytime tasks lists are called, the function
checks if tasks in the database have surpassed the expired_at value.
If that is the case, then it sets the deleted value as 1 for all the
expired tasks.

Co-Authored-By: Mike Fedosin <mfedosin@mirantis.com>

Implements https://review.openstack.org/#/c/324648/
Change-Id: I0bde982de948901f6bfbfab9e57cf84891c22052
2016-06-07 11:23:30 +05:30
..
registry Move Glance Artifact Repository API to separate endpoint 2016-02-10 18:34:55 +03:00
simple Add a soft delete functionality for tasks. 2016-06-07 11:23:30 +05:30
sqlalchemy Add a soft delete functionality for tasks. 2016-06-07 11:23:30 +05:30
__init__.py Fix update all props when you delete image 2016-03-03 13:54:59 +00:00
metadata.py Provide a way to upgrade metadata definitions 2015-03-12 00:26:16 -04:00
migration.py Fix existing migrations to create utf-8 tables for MySQL DB 2015-07-29 22:20:28 -07:00