Tivix / django-cron

Write cron business logic as a Python class and let this app do the rest! It enables Django projects to schedule cron tasks, tracks their success / failures, manages contention (via a cache) etc. Basically takes care of all the boring work for you :-)
www.tivix.com
MIT License
900 stars 193 forks source link

Add option to skip logging of successful jobs with no message #144

Closed cveilleux closed 4 years ago

cveilleux commented 6 years ago

Add a new settings DJANGO_CRON_LOG_EMPTY_MESSAGE_JOBS that allows to skip logging of successful jobs with no message.

The default value is True, so this is fully backward compatible.

oebilgen commented 5 years ago

This is necessary. Can you please merge?

cveilleux commented 4 years ago

I'm closing the PR, the feature as implemented cannot work.

The log is required to know if the job as run in the past. Disabling the log will cause the job to run on every call to runcrons.