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

You Might Also Like
All-in-One IT Monitoring - No More Blind Spots Icon
All-in-One IT Monitoring - No More Blind Spots

Stop juggling tools. PRTG gives you a complete, real-time view of your IT: servers, devices, cloud, and more - in one easy dashboard.

Tired of switching between different tools and missing critical alerts? PRTG brings everything together, monitoring your entire IT infrastructure from a single, intuitive interface. Whether it’s servers, switches, printers, or cloud services, you get instant visibility and clear notifications - no technical jargon, no clutter. Set up in minutes, PRTG helps you prevent downtime, reduce stress, and prove your value to your company. Focus on your job, not on chasing issues. Try PRTG and experience true IT peace of mind.
Get Your Unified IT Trial
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