Skip to main content Skip to complementary content

How to add a CRON-based trigger

About this task

If you need to execute a task on a regular basis over a period of time, then use a CRON-based trigger.

Procedure

  1. On the Job Conductor page, select the task you want to implement a trigger on.
  2. In the Triggers view, click Add trigger... and then select Add CRON trigger from the drop-down list. The CRON trigger configuration panel opens.

    Example

  3. Fill in the Label and Description fields and then click Open UI configurer to open the Cron UI trigger configuration dialog box.

    Example

  4. Select the hour and date items at which you want the task to be executed as the following:

    Field

    Description

    Label

    Enter a name to the trigger you are setting.

    Description

    Enter a description for the trigger type and usage.

    Minutes

    The minute at which you want to execute the task.

    Hours

    The hour at which you want to execute the task.

    Days of month

    The month day on which you want to execute the task.

    If you want the task to be executed on the last day of the selected month(s), select last day of month in the Cron UI trigger configuration dialog box or type in L in the Days of month field.

    Months

    The month in which you want to execute the task.

    Days of week

    The week day on which you want to execute the task.

    Years

    The year in which you want to execute the task.

     

    Fields marked with **: Select one or more week day OR one or more dates.

    Fields marked with *: mandatory information.

    For multiple selection, press Ctrl + click.

    For example:
    Cron Expression Description
    15 10 ? * 6L Fire at 10:15 a.m. on the last Friday of every month.
    15 10 ? * 6L 2020-2022 Fire at 10:15 a.m. on every last Friday of every month during the years 2020, 2021, and 2022.
    15 10 ? * 6#3 Fire at 10:15 a.m. on the third Friday of every month.
  5. Click Apply modifications. The dialog box closes and the selected data is displayed in the CRON UI trigger configuration panel.
  6. Click Save to validate the CRON-based trigger configuration or Cancel to cancel the operation.

Results

The Trigger Status for the selected task changes from No Trigger to At least one trigger is running.

Note that, if the task is already running when the task is triggered, the Job Conductor will wait for the current task to finish. If the task is not finished after 60 seconds, then the status of the task execution changes to 'misfired'. A misfired event also occurs if the trigger misses its firing time because of Talend Administration Center is shut down. For more information on task execution status and monitoring, see Monitoring task executions in the Monitoring node.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!