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
|
||||
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue