From 1dd574cb9e7810021453bfc86c42d19ff45ef5cd Mon Sep 17 00:00:00 2001 From: j Date: Thu, 25 Aug 2016 17:16:11 +0200 Subject: [PATCH] task queue has status not state --- pandora/taskqueue/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/taskqueue/models.py b/pandora/taskqueue/models.py index e65a1e74b..758e0116e 100644 --- a/pandora/taskqueue/models.py +++ b/pandora/taskqueue/models.py @@ -122,12 +122,12 @@ class Task(models.Model): return False def cancel(self): - self.state = 'cancelled' + self.status = 'cancelled' self.save() # FIXME: actually cancel task def json(self): - if self.state != 'cancelled': + if self.status != 'cancelled': self.update() return { 'started': self.started,