Skip to content

Commit

Permalink
Fix #202
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed Dec 22, 2024
1 parent 5267710 commit 73ee051
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scheduler/rq_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 73ee051

Please sign in to comment.