Skip to content

Commit

Permalink
[build] Loop fix and increased restart delay
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Oct 25, 2023
1 parent a81216f commit 48f0621
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -3763,16 +3763,11 @@ def run_search_loop(self) -> NoReturn:
if years.index(self.search_current_year) != years_count - 1:
years_index += 1
self.search_current_year = years[years_index]
elif self.arr_db_query_commands_count() == 0 or datetime.now() > (
timer + (loop_timer * 4)
):
else:
self.refresh_download_queue()
self.force_grab()
raise RestartLoopException
elif (
datetime.now() > (timer + loop_timer)
and self.arr_db_query_commands_count() == 0
) or datetime.now() > (timer + (loop_timer * 4)):
elif datetime.now() > (timer + loop_timer):
self.refresh_download_queue()
self.force_grab()
raise RestartLoopException
Expand Down
2 changes: 1 addition & 1 deletion qBitrr/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,6 @@ def file_cleanup():
logger.info("Restarting processes", delay)
cleanup()
file_cleanup()
time.sleep(10)
time.sleep(60)
run()
loop_delay = datetime.now() + timedelta(hours=delay)

0 comments on commit 48f0621

Please sign in to comment.