Browse Source

Trigger garbage collection at the end of the queue

Relates to #1736
pull/1748/head
Safihre 4 years ago
parent
commit
f75609c98c
  1. 7
      sabnzbd/postproc.py

7
sabnzbd/postproc.py

@ -18,7 +18,7 @@
"""
sabnzbd.postproc - threaded post-processing of jobs
"""
import gc
import os
import logging
import functools
@ -1038,6 +1038,11 @@ def handle_empty_queue():
Thread(target=sabnzbd.QUEUECOMPLETEACTION).start()
sabnzbd.change_queue_complete_action(cfg.queue_complete(), new=False)
# Trigger garbage collection
logging.debug("Triggering Python garbage collection")
gc.collect()
logging.debug("Finished Python garbage collection")
def cleanup_list(wdir, skip_nzb):
"""Remove all files whose extension matches the cleanup list,

Loading…
Cancel
Save