Skip to content

Commit

Permalink
Fix for issue #99. Cronjob is run every time runcrons is called
Browse files Browse the repository at this point in the history
  • Loading branch information
JedrzejMaluszczak committed May 30, 2022
1 parent c99986e commit a99550c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions django_cron/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ def run(self, force=False):
cron_job_class.__name__,
self.cron_job.code,
)
self.make_log('Job in progress', success=True)
self.msg = self.cron_job.do()
self.make_log(self.msg, success=True)
self.cron_job.set_prev_success_cron(
Expand Down

0 comments on commit a99550c

Please sign in to comment.