Task Scheduler
The Task Scheduler application is available under the ClearML Enterprise plan.
ClearML's Task Scheduler Application lets you schedule tasks for one-shot and/or periodic execution at specified times. The Scheduler is useful for scheduling routine operations, such as backups, generating reports, as well as periodically running pipelines for updating data and models.
Each scheduling job is configured with ClearML tasks and a scheduling specification for each task: the time for execution and recurrence type. The Scheduler app will then launch copies of the specified tasks at their specified times.
Once you have launched an app instance, you can view the following information in its dashboard:
-
Scheduled Tasks - Table of tasks scheduled for execution. The table displays the ID of the task scheduled for execution, the queue where it will be enqueued, and when it is scheduled to be executed. Each row presents a specific time that the task is scheduled to be executed (both recurring and not). In the image below, the task in the first row is scheduled to be launched daily (
day=1) at 06:20 UTC (minute=20, hour=6). The task in the third row is scheduled to be launched every month (month=1) on the 15th at 12:00 UTC (day=15, hour=12).

-
Executed Tasks - Table of tasks that have been executed. The table displays the
startedtime, which is the time the task was enqueued, and itsfinishedtime, which is the time the task's execution was completed. If it saysNone, under thefinishedcolumn, the task has not yet completed its execution.

-
Scheduler Log - Application console log containing everything printed to stdout and stderr. The log includes when the scheduler syncs, and when it launches tasks for execution.

You can embed plots from the app instance dashboard into ClearML Reports and other third-party platforms that support embedded content
(e.g. Notion). These visualizations are updated live as the app instance(s) updates. Hover over the plot and click
to copy the embed code, and navigate to a report to paste the embed code.
Scheduler Instance Configuration
When configuring a new Task Scheduler instance, you can fill in the required parameters or reuse the configuration of a previously launched instance.
Launch an app instance with the configuration of a previously launched instance using one of the following options:
- Cloning a previously launched app instance will open the instance launch form with the original instance's configuration prefilled.
- Importing an app configuration file. You can export the configuration of a previously launched instance as a JSON file when viewing its configuration.
The prefilled configuration form can be edited before launching the new app instance.
To configure a new app instance, click Launch New
to open the app's configuration form.
Configuration Options
Administrators can customize the launch form and modify field names and/or available options and defaults.
This section describes the default configuration provided by ClearML.
- Import Configuration - Import an app instance configuration file. This will fill the instance launch form with the values from the file, which can be modified before launching the app instance
- Scheduled Tasks
- Base Task ID - Select a task or enter its ID. This task will be cloned and enqueued for execution at the specified time. Click Select to open the task selection modal, where you can browse and search for a task, then apply it.
- Destination Project - The project where the task will be cloned to.
- Queue - The ClearML Queue to which scheduled tasks are enqueued (make sure an agent is assigned to that queue)
- Recurrence - Recurrence type, select one of the following options:
- None - The task will run once at the specified time.
- Daily - Task will run every day at the times specified in the
Time of the Dayfield - Weekly - Task will run every week on the specified day, at the times specified in the
Time of the Dayfield - Monthly - Task will run every month on the specified days, and at the times specified in the
Time of the Dayfield - Time of the Day - The time(s) (UTC) at which the task should run
- Add item - Add another task to schedule
- Scheduling Job Name - Name for the Scheduler instance. This will appear in the instance list
- Export Configuration - Export the app instance configuration as a JSON file, which you can later import to create a new instance with the same configuration
