Lots of stuff

- changed to single monitor for success and failures
- result is now in django model
- started addings tests
This commit is contained in:
Ilan Steemers
2015-06-16 19:03:00 +02:00
parent f095c52e73
commit 093431e88d
10 changed files with 180 additions and 54 deletions
+4
View File
@@ -7,9 +7,13 @@ class Task(models.Model):
name = models.CharField(max_length=100)
func = models.CharField(max_length=256)
task = models.TextField(null=True)
result = models.TextField(null=True)
started = models.DateTimeField()
stopped = models.DateTimeField()
success = models.BooleanField(default=True)
def time_taken(self):
return (self.stopped - self.started).total_seconds()
class Meta:
app_label = 'django_q'