glance/glance/db/simple
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
..
__init__.py Create 'simple' db driver 2012-06-07 09:20:50 -07:00
api.py Add a soft delete functionality for tasks. 2016-06-07 11:23:30 +05:30