Skip to content

Commit

Permalink
Get rid of continuous_job oddment
Browse files Browse the repository at this point in the history
  • Loading branch information
medihack committed Oct 9, 2024
1 parent 972ee6f commit ca2e1ad
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions radis/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class Status(models.TextChoices):

default_priority: int
urgent_priority: int
continuous_job: bool

status = models.CharField(max_length=2, choices=Status.choices, default=Status.UNVERIFIED)
get_status_display: Callable[[], str]
Expand Down Expand Up @@ -98,11 +97,6 @@ def update_job_state(self) -> bool:
self.save()
return False

if self.continuous_job:
self.status = AnalysisJob.Status.PENDING
self.save()
return True

# Job is finished and we evaluate its final status
has_success = self.tasks.filter(status=AnalysisTask.Status.SUCCESS).exists()
has_warning = self.tasks.filter(status=AnalysisTask.Status.WARNING).exists()
Expand Down

0 comments on commit ca2e1ad

Please sign in to comment.