From 3372de7b6c29079832452fbbee8ec80ebd4b8c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Sat, 22 Nov 2014 10:46:17 +0100 Subject: [PATCH] fixed worker bug --- server/src/uds/core/workers/AssignedAndUnused.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/uds/core/workers/AssignedAndUnused.py b/server/src/uds/core/workers/AssignedAndUnused.py index ee966c26..97e1ac4e 100644 --- a/server/src/uds/core/workers/AssignedAndUnused.py +++ b/server/src/uds/core/workers/AssignedAndUnused.py @@ -64,6 +64,6 @@ class AssignedAndUnused(Job): osm.processUnused(us) else: # No os manager, simply remove unused services in specified time with transaction.atomic(): - for us in ds.assignedUserServices().select_for_update().filter(in_use=False, state_date__lt=since_state, state=State.USABLE, os_state=State.USABLE): + for us in ds.assignedUserServices().filter(in_use=False, state_date__lt=since_state, state=State.USABLE, os_state=State.USABLE): logger.debug('Found unused assigned service {0}'.format(us)) us.remove()