toloka.client.TolokaClient.clone_project
| Source code
clone_project( self, project_id: str, reuse_controllers: bool = True)
Clones a project and all pools and trainings inside it.
clone_project
emulates cloning behavior via Toloka interface. Note that it calls several API methods. If some method fails then the project may be partially cloned.
Important notes:
reuse_controllers
is True
, quality control collectors monitor both projects.
For example, the fast_submitted_count
rule counts fast responses in the cloned and new projects together.Parameters | Type | Description |
---|---|---|
project_id | str | The ID of the project to be cloned. |
reuse_controllers | bool |
Default value: |
Returns:
Created project, pools and trainings.
Return type:
Examples:
project, pools, trainings = toloka_client.clone_project( project_id='92694', reuse_controllers=False)# add tasks in pools and trainings
Last updated: August 28, 2023