From 73ee051ef9d572b71da8ea78de7921087808ca94 Mon Sep 17 00:00:00 2001 From: Daniel M Date: Sun, 22 Dec 2024 10:54:22 -0500 Subject: [PATCH] Fix #202 --- scheduler/rq_classes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scheduler/rq_classes.py b/scheduler/rq_classes.py index 1023ff1..a5fabd0 100644 --- a/scheduler/rq_classes.py +++ b/scheduler/rq_classes.py @@ -267,8 +267,7 @@ def reschedule_all_jobs(): for model_name in MODEL_NAMES: model = apps.get_model(app_label="scheduler", model_name=model_name) enabled_jobs = model.objects.filter(enabled=True) - unscheduled_jobs = filter(lambda j: j._ready_for_schedule(), enabled_jobs) - for item in unscheduled_jobs: + for item in enabled_jobs: logger.debug(f"Rescheduling {str(item)}") item.save()