Skip to content

Commit 5cd0358

Browse files
committed
dont clean pending, it has it own command
1 parent f045493 commit 5cd0358

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/cuckoo/common/cleaners_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ def cuckoo_clean_before(args: dict):
498498
log.info("url filter applied")
499499
category = "url"
500500

501-
old_tasks = db.list_tasks(added_before=added_before, category=category)
501+
old_tasks = db.list_tasks(added_before=added_before, category=category, status_not=TASK_PENDING)
502502

503503
# We need this to cleanup file system and MongoDB calls collection
504504
id_arr = [e.id for e in old_tasks]

0 commit comments

Comments
 (0)