Skip to content

Commit

Permalink
fix long period task will never be triggered
Browse files Browse the repository at this point in the history
  • Loading branch information
daydaychen authored and chentiantian committed Jan 20, 2024
1 parent 00f0a5c commit 9501e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_celery_beat/schedulers.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __init__(self, model, app=None):
self.model = model

if not model.last_run_at:
model.last_run_at = self._default_now()
model.last_run_at = model.date_changed
# if last_run_at is not set and
# model.start_time last_run_at should be in way past.
# This will trigger the job to run at start_time
Expand Down

0 comments on commit 9501e70

Please sign in to comment.