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 :-)
It is possible for the running lock date in the cache to be None if
another process released the lock before the current process fetched
the value from the cache.
It is possible for the running lock date in the cache to be None if another process released the lock before the current process fetched the value from the cache.