falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ying Zheng (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FALCON-1968) Enable scheduling using Oozie cron-like syntax
Date Fri, 27 May 2016 02:48:12 GMT

     [ https://issues.apache.org/jira/browse/FALCON-1968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ying Zheng updated FALCON-1968:
-------------------------------
    Attachment: CronSyntax.pdf

Attached design doc with proof-of-concept results.

> Enable scheduling using Oozie cron-like syntax
> ----------------------------------------------
>
>                 Key: FALCON-1968
>                 URL: https://issues.apache.org/jira/browse/FALCON-1968
>             Project: Falcon
>          Issue Type: New Feature
>            Reporter: Ying Zheng
>            Assignee: Ying Zheng
>         Attachments: CronSyntax.pdf
>
>
> Right now, to have a job that runs hourly everyday from 9-5pm, we need to schedule 8
identical daily jobs, each starts at one particular hour; to have a job that runs from Monday
through Friday, we need 5 identical weekly jobs, each starts at one particular day. This JIRA
aims to solve this inconvenience with Oozie cron-like syntax of format * * * * *, where each
field stands for minute, hour, day-of-month, month, and day-of-week, respectively.
> Example 1: Run at the 30th minute of every hour
> {code}
> frequency="30 * * * *"
> {code}
> Example 2: Run at 2:30 p.m. every day
> {code}
> frequency="30 14 * * *"
> {code}
> Example 3: Run at 2:30 p.m. every day in February
> {code}
> frequency="30 14 * 2 *"
> {code}
> Example 4: Run every 20 minutes between 5:00-10:00 a.m. and between 12:00-2:00 p.m. on
the fifth day of each month
> {code}
> frequency="0/20 5-9,12-14 0/5 * *"
> {code}
> Example 5: Run every Monday at 5:00 a.m.
> {code}
> frequency="0 5 ? * MON"
> {code}
> Example 6: Run every hour from 9:00 a.m.-5:00 p.m. on weekdays
> {code}
> frequency="0 9-17 ? * 2-6"
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message