Modeling Guide

Schedule Graph Executions

The SAP Data Hub Modeler provides capabilities to schedule the graph execution on a regular basis instead of manually executing them.

Context

We recommend scheduling only for graphs, which when executed runs for a limited period of time and finishes with the status either as completed or dead. For example, Data Workflows (graphs with data workflow operators).

Procedure

  1. Open the graph that you want to execute in a graph editor.
  2. In the editor toolbar, choose (Run).
  3. Choose the Schedule menu option.
  4. Schedule a graph execution.
    In the Schedule Graph dialog box, define the graph execution schedule.
    1. In the Schedule Name text field, provide a name for the schedule.
    2. Select a schedule type.
      The tool supports two ways to create a schedule.
      Schedule Type

      Type

      Description

      Form

      This type is the default mode. Use this mode to define a condition that specifies the frequency (or number of occurrences) for executing the graph.

      The system uses the UTC equivalent of the frequency pattern that you specify to schedule the executions.

      For example, you can define a frequency condition to execute the graph the last day of every month for a year.

      Expression

      Use this mode to define a cron expression that provides the condition for scheduling a recurring graph execution. The cron expression is a string comprising of five fields separated by white space.

      The syntax for the cron expression is Minute Hour DayOfMonth Month DayOfWeek.

Next Steps

After creating a schedule, you can monitor and manage the schedule within the modeler or use the SAP Data Hub Monitoring application.

In modeler, to monitor and manage the schedule, use the Schedule tab in the bottom pane. This tab provides a description of the schedule and the graph state. If the graph is in the active state, a schedule trigger runs, otherwise it is suspended. To stop a schedule, select the required graph and choose (Stop Process).