Compare the previous crawl time to the upcoming hour
This commit is contained in:
1 parent
4408af7925
commit
190412a0aa
1 file changed
+1
-1
@@ -235,7 +235,7 @@ def schedule_indexing():
|
||||
index_schedule__gt=Val(IndexSchedule.NEVER),
|
||||
)
|
||||
for source in qs_gen(qs):
|
||||
previous_run = now - timezone.timedelta(
|
||||
previous_run = next_hour - timezone.timedelta(
|
||||
seconds=source.index_schedule
|
||||
)
|
||||
skip_source = (
|
||||
|
||||
Reference in new issue
Block a user