New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cron #5

merged 2 commits into from Sep 15, 2018


None yet
1 participant

kinoppyd commented Sep 15, 2018

Cron task

Add new DSL cron and every.
This method act like cron jobs.


cron and every tasks needs dest_to condition.


execute block every hour between from 12:00 to 21:00

cron '0 12-21 * * *', dest_to: 'times_kinoppyd' do
  "Hi bro, wazup?

You can use Whenever syntax instead of cron syntax

every :day, at: '14:00', dest_to: 'times_kinoppyd' do

See Whenever to know more detail syntax.

@kinoppyd kinoppyd merged commit 06618e8 into master Sep 15, 2018

@kinoppyd kinoppyd deleted the feature/cron branch Sep 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment