clone_project

toloka.async_client.client.AsyncTolokaClient.clone_project | Source code

async 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:

  • No tasks are cloned.
  • The expiration date is not changed in the new project.
  • The same skills are used.
  • If 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 description

ParametersTypeDescription
project_idstr

The ID of the project to be cloned.

reuse_controllersbool
  • True — Use same quality controllers in cloned and created projects.
  • False — Use separate quality controllers.

Default value: True.

  • Returns:

    Created project, pools and trainings.

  • Return type:

    CloneResults

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

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming