|
@@ -216,6 +216,7 @@ class Job(models.Model):
|
|
|
|
|
|
|
|
# Send signal
|
|
# Send signal
|
|
|
job_start.send(self)
|
|
job_start.send(self)
|
|
|
|
|
+ start.alters_data = True
|
|
|
|
|
|
|
|
def terminate(self, status=JobStatusChoices.STATUS_COMPLETED, error=None):
|
|
def terminate(self, status=JobStatusChoices.STATUS_COMPLETED, error=None):
|
|
|
"""
|
|
"""
|
|
@@ -245,6 +246,7 @@ class Job(models.Model):
|
|
|
|
|
|
|
|
# Send signal
|
|
# Send signal
|
|
|
job_end.send(self)
|
|
job_end.send(self)
|
|
|
|
|
+ terminate.alters_data = True
|
|
|
|
|
|
|
|
def log(self, record: logging.LogRecord):
|
|
def log(self, record: logging.LogRecord):
|
|
|
"""
|
|
"""
|