mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-06 22:28:11 +08:00
add attempt_count to task
This commit is contained in:
@@ -29,6 +29,7 @@ class Task(models.Model):
|
||||
started = models.DateTimeField(editable=False)
|
||||
stopped = models.DateTimeField(editable=False)
|
||||
success = models.BooleanField(default=True, editable=False)
|
||||
attempt_count = models.IntegerField(default=0)
|
||||
|
||||
@staticmethod
|
||||
def get_result(task_id):
|
||||
|
||||
Reference in New Issue
Block a user