mirror of
https://github.com/clearml/clearml-docs
synced 2025-01-31 14:37:18 +00:00
68 lines
4.1 KiB
Markdown
68 lines
4.1 KiB
Markdown
---
|
|
title: Task Scheduler
|
|
---
|
|
|
|
:::important Enterprise Feature
|
|
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.
|
|
|
|
## Scheduler Instance Configuration
|
|
|
|
* **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** - ID of a ClearML task to clone and enqueue for execution at the specified time.
|
|
* **Destination Project** - The project where the task will be cloned to.
|
|
* **Queue** - The [ClearML Queue](../../fundamentals/agents_and_queues.md#what-is-a-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 Day` field
|
|
* **Weekly** - Task will run every week on the specified day, at the times specified in the `Time of the Day` field
|
|
* **Monthly** - Task will run every month on the specified days, and at the times specified in the `Time of the Day` field
|
|
* **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
|
|
|
|
![TaskScheduler instance launch form](../../img/apps_taskscheduler_wizard.png)
|
|
|
|
|
|
## Dashboard
|
|
|
|
Once a Task Scheduler instance is launched, the dashboard displays a summary of the scheduled tasks.
|
|
|
|
![TaskScheduler dashboard](../../img/apps_taskscheduler_dashboard.png)
|
|
|
|
The Task Scheduler dashboard shows:
|
|
* 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`).
|
|
|
|
![TaskScheduler scheduler tasks](../../img/apps_taskscheduler_scheduled_tasks.png)
|
|
* Executed Tasks - Table of tasks that have been executed. The table displays the `started` time, which is the time
|
|
the task was enqueued, and its `finished` time, which is the time the task's execution was completed. If it says `None`,
|
|
under the `finished` column, the task has not yet completed its execution.
|
|
|
|
![TaskScheduler executed tasks](../../img/apps_taskscheduler_executed_tasks.png)
|
|
|
|
* 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.
|
|
|
|
:::tip EMBEDDING CLEARML VISUALIZATION
|
|
You can embed plots from the app instance dashboard into [ClearML Reports](../webapp_reports.md). These visualizations
|
|
are updated live as the app instance(s) updates. The Enterprise Plan and Hosted Service support embedding resources in
|
|
external tools (e.g. Notion). Hover over the plot and click <img src="/docs/latest/icons/ico-plotly-embed-code.svg" alt="Embed code" className="icon size-md space-sm" />
|
|
to copy the embed code, and navigate to a report to paste the embed code.
|
|
:::
|