File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ def get_unique_key(self) -> str:
161
161
A unique key to prevent duplicate jobs from being queued.
162
162
Enabled by returning a non-empty string.
163
163
"""
164
- raise ""
164
+ return ""
165
165
166
166
def get_priority (self ) -> int :
167
167
return 0
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ def mark_lost_jobs(self):
90
90
# but if they're still running, we can't actually send a signal to cancel it...
91
91
now = timezone .now ()
92
92
one_day_ago = now - datetime .timedelta (days = 1 )
93
- lost_jobs = self .filter (created_at__lt = one_day_ago )
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.
94
94
for job in lost_jobs :
95
95
job .convert_to_result (
96
96
ended_at = now ,
You can’t perform that action at this time.
0 commit comments