close_pool

toloka.client.TolokaClient.close_pool | Source code

close_pool(self, pool_id: str)

Closes a pool.

If all tasks in a pool are completed, then the pool is closed automatically.

Parameters description

ParametersTypeDescription
pool_idstr

The ID of the pool to be closed.

  • Returns:

    The pool with updated status.

  • Return type:

    Pool

Examples:

open_pool = next(toloka_client.get_pools(status='OPEN'))
toloka_client.close_pool(pool_id=open_pool.id)

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