Pro Tip: How to avoid database deadlocks when working with CRON jobs

How to avoid deadlocks when working with CRON jobs