2021-05-13 23:48:51 +00:00
|
|
|
---
|
2025-02-06 15:31:11 +00:00
|
|
|
title: Reproducing Tasks
|
2021-05-13 23:48:51 +00:00
|
|
|
---
|
|
|
|
|
2025-02-06 15:31:11 +00:00
|
|
|
Reproduce tasks on local or remote machines in one of the following ways:
|
|
|
|
* Cloning any task - Make an exact copy, while maintaining the original task
|
|
|
|
* Resetting a task whose status is not *Published* - Delete the previous run's logs and output
|
2021-05-13 23:48:51 +00:00
|
|
|
|
2025-02-06 15:31:11 +00:00
|
|
|
After cloning or resetting, enqueue the reset or newly cloned task for execution by a worker.
|
2021-05-13 23:48:51 +00:00
|
|
|
|
2025-02-06 15:31:11 +00:00
|
|
|
Tasks can also be modified and then executed remotely, see [Tuning Tasks](webapp_exp_tuning.md).
|
2021-05-13 23:48:51 +00:00
|
|
|
|
2024-01-01 17:23:15 +00:00
|
|
|
## Cloning
|
2025-02-06 15:31:11 +00:00
|
|
|
To clone a task:
|
|
|
|
1. In the task table, right-click the task to reproduce and click **Clone**.
|
|
|
|
1. In the `Clone Task` modal, set the following:
|
|
|
|
* Project - The project where the task will be saved
|
2024-01-01 17:23:15 +00:00
|
|
|
* Description (optional)
|
2025-02-06 15:31:11 +00:00
|
|
|
* Set `<cloned_task>` as parent - Select to set this task as the new task's parent
|
2024-01-01 17:23:15 +00:00
|
|
|
1. Click **Clone**
|
2021-05-13 23:48:51 +00:00
|
|
|
|
2024-01-01 17:23:15 +00:00
|
|
|
:::note
|
2025-02-06 15:31:11 +00:00
|
|
|
By default, the new task's parent task is set to the original task's parent, unless the original task does not
|
|
|
|
have a parent, in which case the original task is set as the parent. Select `Set <cloned_task> as parent` to force
|
|
|
|
the original task to become the clone's parent.
|
2024-01-01 17:23:15 +00:00
|
|
|
:::
|
2021-05-13 23:48:51 +00:00
|
|
|
|
2025-02-05 15:53:30 +00:00
|
|
|
![Clone modal](../img/webapp_clone.png#light-mode-only)
|
|
|
|
![Clone modal](../img/webapp_clone_dark.png#dark-mode-only)
|
2021-05-13 23:48:51 +00:00
|
|
|
|
|
|
|
|
2024-01-01 17:23:15 +00:00
|
|
|
## Resetting
|
2021-05-13 23:48:51 +00:00
|
|
|
|
2025-02-06 15:31:11 +00:00
|
|
|
To reset a task:
|
2025-02-09 17:35:03 +00:00
|
|
|
1. In the task table, right-click the relevant task and click **Reset**.
|
2025-02-06 15:31:11 +00:00
|
|
|
1. In the `Reset Task` modal, if you want the task's artifacts and debug samples to be deleted from the
|
2024-01-01 17:23:15 +00:00
|
|
|
ClearML file server, click the checkbox
|
|
|
|
1. Click **Reset**
|
2021-05-13 23:48:51 +00:00
|
|
|
|
2025-02-05 15:53:30 +00:00
|
|
|
![Reset modal](../img/webapp_reset.png#light-mode-only)
|
|
|
|
![Reset modal](../img/webapp_reset_dark.png#dark-mode-only)
|
2024-01-01 17:23:15 +00:00
|
|
|
|
|
|
|
## Final Steps
|
|
|
|
|
2025-02-06 15:31:11 +00:00
|
|
|
At the end of the process you are left with `Draft` task, meaning that it is editable.
|
2024-01-01 17:23:15 +00:00
|
|
|
|
2025-02-06 15:31:11 +00:00
|
|
|
Re-execute the new task:
|
|
|
|
1. If desired, modify the task's configuration (see [Tuning Tasks](webapp_exp_tuning.md)).
|
|
|
|
1. Enqueue the task for execution. Right-click the task > Enqueue > Select a queue > **ENQUEUE**.
|
2024-01-01 17:23:15 +00:00
|
|
|
|
|
|
|
:::note
|
|
|
|
Make sure that a [ClearML Agent](../clearml_agent.md) has been assigned to the selected queue
|
|
|
|
:::
|
|
|
|
|
2025-02-06 15:31:11 +00:00
|
|
|
A ClearML Agent will fetch the task from the queue and execute it. The task can now be tracked and its
|
2024-01-01 17:23:15 +00:00
|
|
|
results visualized.
|