title: How to create leases to avoid duplicate cron-jobs when deploying application across multiple instances?
body: <p>I have a Dockerized Django application which have a number of CRON-jobs that need to be executed.</p>
  <p>Right now I'm running it with the package Supercronic (which is recommended for running cron-jobs inside containers). This will be deployed on a two servers for redunancy-purposes, i.e. If one goes down the other one need to take over and execute the cron-jobs.</p>
  <p>However, the issue is that without any configuration this will result in duplicate cron-jobs being executed, one for each server. I've read that you can set up something called a &quot;lease&quot; for the cron-jobs to retrieve, to avoid duplicates from different servers, but I haven't found any instructions on how to set this up.</p>
  <p>Can someone maybe point me in the right direction here?</p>