forked from 0x2620/pandora
task queue has status not state
This commit is contained in:
parent
8136a2c2f5
commit
1dd574cb9e
1 changed files with 2 additions and 2 deletions
|
@ -122,12 +122,12 @@ class Task(models.Model):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def cancel(self):
|
def cancel(self):
|
||||||
self.state = 'cancelled'
|
self.status = 'cancelled'
|
||||||
self.save()
|
self.save()
|
||||||
# FIXME: actually cancel task
|
# FIXME: actually cancel task
|
||||||
|
|
||||||
def json(self):
|
def json(self):
|
||||||
if self.state != 'cancelled':
|
if self.status != 'cancelled':
|
||||||
self.update()
|
self.update()
|
||||||
return {
|
return {
|
||||||
'started': self.started,
|
'started': self.started,
|
||||||
|
|
Loading…
Reference in a new issue