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
Jedrzej Maluszczak authored and Jedrzej Maluszczak committed May 26, 2022
1 parent c510c9e commit f86db66
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 f86db66

Please sign in to comment.