We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8a3a80 commit 58f4bfcCopy full SHA for 58f4bfc
bolt-jobs/bolt/jobs/models.py
@@ -90,7 +90,9 @@ def mark_lost_jobs(self):
90
# but if they're still running, we can't actually send a signal to cancel it...
91
now = timezone.now()
92
one_day_ago = now - datetime.timedelta(days=1)
93
- lost_jobs = self.filter(created_at__lt=one_day_ago) # Doesn't matter whether it started or not -- it shouldn't take this long.
+ lost_jobs = self.filter(
94
+ created_at__lt=one_day_ago
95
+ ) # Doesn't matter whether it started or not -- it shouldn't take this long.
96
for job in lost_jobs:
97
job.convert_to_result(
98
ended_at=now,
0 commit comments