Whenever (javan/whenever) is a Ruby gem that provides a clean, Ruby DSL for defining and managing cron jobs within your application. Rather than editing system cron tables by hand, you describe scheduled tasks in a schedule.rb file using methods like every, runner, command, or rake. The gem then compiles this schedule into a standard crontab format and installs it for you, handling all the necessary quoting, environment setup, and command path resolution. It supports specifying execution contexts, output redirection, and interval offsets (e.g., “every 5 minutes between 9-5 on weekdays”). You can also write conditional logic around which jobs run on different environments or servers. Because it's integrated with your codebase, Whenever keeps your cron definitions versioned, testable, and maintainable alongside the rest of your project rather than buried in server configuration.

Features

  • Ruby DSL for defining schedule tasks (e.g. every, hourly, daily, etc) instead of raw cron syntax
  • Ability to define jobs with parameters, environment, command to run, etc via Ruby code
  • Automatically writes crontab entries from schedule file
  • Supports multiple task types (runner tasks, rake tasks, custom commands)
  • Offers ability to set environment variables for tasks and customizing PATH etc
  • Supports time zones, frequency options, and invoking tasks at specific times or intervals

Project Samples

Project Activity

See All Activity >

Categories

Scheduling

License

MIT License

Follow Whenever

Whenever Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Whenever!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Ruby

Related Categories

Ruby Scheduling Software

Registered

2025-09-17