Skip to main content

Manage workflows

Define, schedule, and run your data processing as workflows in Workflow Engine, a menu in the Airflow UI of your Orchestration service. Each workflow is a set of tasks that depend on each other, modeled as a DAG (directed acyclic graph).

Prerequisites​

Open Workflow Engine​

  1. Sign in to the Airflow UI of your Orchestration service.
  2. In the Airflow UI, select Workflow Engine → Jobs in the left menu.

Airflow UI home page with the Workflow Engine menu open in the left menu, listing Jobs, Notifications, My Workspace, Logs, Spark UI, and Spark History

The Workflow Engine menu also has Notifications, for the Email and Telegram channels. See Set up workflow notifications. For My Workspace, Logs, Spark UI, and Spark History, see Orchestration overview.

View the workflow list​

The Workflows page lists all the workflows, with an overview of each one.

Workflows page with the Create Workflow button and a list with the Name, Description, Number of tasks, and Actions columns

ColumnDescription
NameThe name of the workflow. Select it to open the workflow.
DescriptionA short description of the workflow.
Number of tasksThe number of tasks in the workflow.
ActionsThe delete icon (trash). See Delete a workflow.

On this page, you can do the following.

ActionDescription
Create WorkflowCreate a new workflow. See Create a workflow.
Rows per pageChoose the number of workflows on each page. Default: 10.

Create a workflow​

  1. Open Workflow Engine. See Open Workflow Engine.
  2. Select Create Workflow.

Workflow Engine creates the workflow with default settings, shows "Workflow initialized successfully!", and opens it on the Workflows → Update page.

Workflow page right after creation, with the success message, a default Python task in the graph, the task form under the graph, and the Basic Information, Schedule, and Notifications panels on the right

SettingDefault
Workflow IDGenerated in ascending order. It is unique in the system.
Workflow nameworkflow- followed by 8 random letters and numbers.
DescriptionEmpty. You can add it later.
TagsEmpty. You can add them later.
ScheduleManual trigger (do not run on schedule).
TasksOne task, Task_1, of type Python.

Fill in the default task, then add the other tasks of the workflow. See Configure workflow tasks and Workflow task types.

Open a workflow​

  1. Open Workflow Engine. See Open Workflow Engine.
  2. On the Workflows page, select the name of the workflow.

The workflow page has three areas:

  • The graph shows the tasks and their dependencies. Select a task to view or edit it, or select Add task to add one.
  • The task form, under the graph, shows the settings of the selected task. It ends with Delete and Save Task.
  • The right panel has Basic Information (name, description, and tags), Schedule (Schedule Interval), and Notifications. Each one has an edit icon (pencil).

Workflow page with a one-task graph, the Add task button, the task form under the graph, the Basic Information, Schedule, and Notifications panels on the right, and the Run button at the top right

ButtonDescription
RunRun the workflow. The button is available only when the workflow has at least one saved task.
More menu (⋮) → HistoryOpen the run history of the workflow.
More menu (⋮) → DeleteDelete the workflow and all its data.
Zoom in (+)Zoom in on the graph.
Zoom out (−)Zoom out on the graph.
Add taskAdd a task to the workflow.

Edit basic information​

  1. Open the workflow. See Open a workflow.
  2. In Basic Information, select the edit icon (pencil).
  3. Change the information, as described in the table below.
  4. Select Save.
FieldDescription
Workflow nameRequired. 3 to 100 characters: letters, numbers, _, and -. It must be unique among the workflows in the system.
DescriptionOptional. Up to 255 characters.
TagsOptional. Press Enter after each tag. Up to 10 tags. Each tag has 1 to 30 characters: letters, numbers, -, and _. A workflow cannot have the same tag twice.

Set a schedule​

Set a schedule to run the workflow automatically. Manual trigger (do not run on schedule) is selected by default, and the workflow then runs only when you run it.

  1. Open the workflow. See Open a workflow.

  2. In Schedule, select the edit icon (pencil).

    Schedule dialog with Manual trigger (do not run on schedule) selected and the Cancel and Save buttons

  3. In the Schedule dialog, clear Manual trigger (do not run on schedule).

  4. Select an interval tab, as described in the table below.

  5. Fill in the settings of the tab, for example the days on the Weekly tab.

  6. In Start time, select the hour and the minute when the workflow starts.

  7. Check the schedule preview and the cron expression under Start time.

    Schedule dialog with Manual trigger cleared, the Weekly tab with a check box for each day of the week, Start time set to 00 00, and a preview that reads At 12:00 AM above the cron expression

  8. Select Save, or select Cancel to discard your changes.

TabDescription
MinutesRun the workflow at an interval of minutes.
HourlyRun the workflow every hour.
DailyRun the workflow every day.
WeeklyRun the workflow on the days of the week that you select, from Monday to Sunday.
MonthlyRun the workflow every month.
CustomEnter your own cron expression in Expression.

The dialog shows the cron expression of your choices. For example, 0 0 * * * runs the workflow at 12:00 AM every day.

A cron expression must follow these rules:

  • It has 5 fields: minute, hour, day of month, month, and day of week.
  • Its special characters are only *, ,, -, and /.
  • It has no line breaks.
  • It has at most 100 characters.

Run a workflow​

  1. Open the workflow. See Open a workflow.
  2. Select Run at the top right to run the workflow.

You can see its runs in History. See View the run history.

Run is available only when the workflow has at least one saved task. A workflow with a schedule also runs automatically, as set in Schedule. See Set a schedule.

View the run history​

  1. Open the workflow. See Open a workflow.

  2. Select the more menu (⋮) next to Run, then select History.

    More menu next to the Run button of a workflow, with the History and Delete options

History opens the DAG page of the workflow in the Airflow UI, where you can see the runs of the workflow. The page has the tabs Overview, Runs, Tasks, Calendar, Audit Log, Code, and Details.

Airflow DAG page of a workflow with the Trigger button and the Overview, Runs, Tasks, Calendar, Audit Log, Code, and Details tabs

Delete a workflow​

Deleting a workflow deletes all its tasks and all its data, including the run history and the logs. Both ways below open the Delete Workflow dialog, which asks Are you sure you want to delete workflow "<WORKFLOW-NAME>"? This action cannot be undone. After you confirm, Workflow Engine deletes the workflow, shows "Workflow deleted successfully!", and returns to the workflow list.

danger

Deleting a workflow cannot be undone.

From the workflow list​

  1. Open Workflow Engine. See Open Workflow Engine.

  2. In the row of the workflow, select the delete icon (trash) in Actions.

  3. In the Delete Workflow dialog, select Delete, or select Cancel to keep the workflow.

    Delete Workflow dialog over the workflow list, with the confirmation message and the Cancel and Delete buttons

From the workflow page​

  1. Open the workflow. See Open a workflow.
  2. Select the more menu (⋮) next to Run, then select Delete.
  3. In the Delete Workflow dialog, select Delete, or select Cancel to keep the workflow.

Next steps​