Ecron - Resilient, lightweight, efficient, cron-like job scheduling library for Erlang/Elixir

While implementing scheduling tasks in naturally asynchronous environments like Erlang and Elixir is straightforward, building a reliable and efficient solution requires careful consideration.

Ecron supports both cron-style and interval-based job scheduling, focusing on resiliency, correctness, and lightweight with comprehensive testing via PropTest.

Use Case

Ecron’s precise scheduling is perfect for:

  • Security: 0 3 * * 0 Rotate API keys and dynamic credentials automatically every Sunday at 3 AM
  • Flash Sale: 0 8 * * * Launch flash sales with precision at 8 AM
  • Analytics: 0 9 * * 1 Sending comprehensive weekly reports every Monday at 9 AM
  • Disk Protection: 30 23 * * * Compress and archive old logs at 23:30 daily
  • Data Cleanup: 0 1 1 * * Pruning inactive users on the first day of each month
  • Data Backup: 0 2 * * * Create reliable Mnesia database backups every day at 2 AM

Happy scheduling :slight_smile:

Blog: Mastering Job Scheduling With Ecron
Hex Docs: ecron v1.1.0 — Documentation
Github:

14 Likes