Schedule a data pipeline task
Use tasks to automate running a data pipeline. Tasks can be scheduled using a range of intervals, from every 15 minutes to monthly. Results of previous runs can be viewed and include the output items and messages returned from the data pipeline run.
You can manage data pipeline tasks in the following ways:
Use the scheduled tasks page to manage tasks for existing data pipelines.
Use the editor to manage tasks for the data pipeline you are currently editing.
Create tasks
Use one of the workflows described below to create a task.
Create a task on the scheduled tasks page
To create a task on the scheduled tasks page for an existing data pipeline, complete the following steps:
Sign in to ArcGIS Enterprise with your account and access the Data Pipelines app by using the app launcher.
The Data Pipelines gallery page appears.
Click Manage scheduling. If you are an administrator, click the Manage drop-down menu and choose Scheduled tasks.
Click Create task.
The create task dialog box appears.
Choose a data pipeline to schedule, and click Next.
Provide a title for the task, and configure the schedule details.
Click Save.
The task is created and the data pipeline is scheduled to run.
Create a task in the editor
To create a task in the editor for the open data pipeline, complete the following steps:
Sign in to ArcGIS Enterprise with your account and access the Data Pipelines app by using the app launcher.
The Data Pipelines gallery page appears.
Open an existing data pipeline or create a data pipeline that you want to run on a schedule.
The editor opens.
Click Schedule on the editor toolbar.
This is only enabled if the open data pipeline has been saved.
The scheduled tasks pane appears.
Click Create task.
The create task dialog box appears.
Provide a title for the task, and configure the schedule details.
Click Save.
The task is created and the data pipeline is scheduled to run.
Work with existing tasks
The list of all your data pipeline tasks can be viewed through the scheduled tasks page, which is accessible from the Manage scheduling button in the Data Pipelines gallery page. In the editor, the Schedule button opens a panel that displays the tasks for the open data pipeline.
Both the schedule panel in the editor and the scheduled tasks page contain information about the task including its title, the next run date, and task status. Values for Next run time are as follows:
A date—The date and time when the next run is scheduled to begin.
Completed—The end condition for the task has been met and the last run completed.
Failed—The end condition for the task has been met and the last run failed.
Paused—The task has been paused.
In addition to viewing tasks, the following options are available for managing tasks:
Pause or Resume—Pause an active task, or resume a paused task. Paused tasks will not run at the scheduled date and time until resumed.
Edit—Edit the parameters set for a task. You can edit the title and the schedule settings.
Delete—Delete a task. Deleted tasks cannot be restored.
Restart—Restart a task that is completed.
Task runs and run details
When you click a task, the task run history is displayed. Click an individual run to see the run details, including the output items and any messages. Task runs that are in progress do not show any information until the run is complete. Use the refresh button in the tasks list to get the latest status.
Considerations
Consider the following when authoring data pipelines that will be scheduled:
When configuring outputs, it is not recommended to use the Overwrite if item already exists or Overwrite if layer already exists parameter due to the following limitations:
For Feature layer outputs, the overwrite parameter can alter the schema, geometry and records, which may result in broken downstream workflows such as pop-ups or filters. It is recommended to use the Replace or Add and update options to maintain consistent schemas.
For Feature layer and File item output types, overwrite operations do not rollback when a failure occurs during write, which may result in the loss of the item until the data pipeline is run successfully. The Replace and Add and update options offer rollback capabilities and are recommended for use in scheduling.
For File item outputs, it is recommended to use the Overwrite output method instead of the Overwrite if item already exists option. The Overwrite method allows you to explicitly select the item to overwrite, instead of relying on the file's name or folder which may have changed since the last run.
If a scheduled data pipeline has an output that uses the Create output method without the overwrite parameter enabled, the task will fail after the first run since the item already exists. Consider the following solutions:
For Feature layer outputs, you can create the item before scheduling a task, and set the output method to Replace or Add and update (recommended), or enable the Overwrite if layer already exists parameter (not recommended).
For File item outputs, you can create the item before scheduling a task, then set the output method to Overwrite (recommended) or enable the Overwrite if item already exists parameter (not recommended).
Consider the following when scheduling data pipeline tasks:
The maximum frequency a task can be scheduled to run is every 15 minutes.
Use the advanced Maximum run duration parameter to specify the maximum time a task can run before it is automatically canceled.
You can only create tasks for data pipeline items that you own. This applies to all user types including administrators. Administrators can view and edit tasks for all data pipeline items in the organization.
If a task run takes longer than the interval between scheduled tasks, the subsequent task run will be skipped.
Any tasks that fail five consecutive times will automatically be switched to a failed state and will no longer run. To ensure that the tasks continue to run, the owner of the task must identify and rectify the failure and change the task to the active state.
A maximum of 30 task runs per task are stored in the task runs list. After 30 runs, the oldest task run will no longer be accessible and the latest run is added to the list.
Each user account can have a maximum of 10 active Data Pipelines tasks. Each organization can have a maximum of 50 total active Data Pipelines tasks across all users. In Data Pipelines, active tasks show a next run time. There is no limit to inactive tasks. If you have 10 active tasks, pause or delete an active task to create a new one.
When using a Repeat type of Day, the task will run relative to the first of the month, not the start date for the task. For example, if you schedule a task to run every three days starting on January 2nd, the first run will be on January 4th.