Fix save on experiment jobs
@@ -42,15 +42,6 @@ class ExperimentJob(AbstractJob):
def unique_name(self):
return '{}.{}.{}'.format(self.experiment.unique_name, self.sequence, self.role)
- def save(self, *args, **kwargs): # pylint:disable=arguments-differ
- if self.pk is None:
- last = ExperimentJob.objects.filter(experiment=self.experiment).last()
- self.sequence = 1
- if last:
- self.sequence = last.sequence + 1
-
- super(ExperimentJob, self).save(*args, **kwargs)
-
def set_status(self, status, message=None, details=None): # pylint:disable=arguments-differ
return self._set_status(status_model=ExperimentJobStatus,
status=status,
