You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@falcon.apache.org by "Ying Zheng (JIRA)" <ji...@apache.org> on 2016/05/17 22:37:13 UTC

[jira] [Created] (FALCON-1968) Enable scheduling using Oozie cron-like syntax

Ying Zheng created FALCON-1968:
----------------------------------

             Summary: Enable scheduling using Oozie cron-like syntax
                 Key: FALCON-1968
                 URL: https://issues.apache.org/jira/browse/FALCON-1968
             Project: Falcon
          Issue Type: Bug
            Reporter: Ying Zheng
            Assignee: Ying Zheng


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)