open_pool_async

toloka.client.TolokaClient.open_pool_async | Source code

open_pool_async(self, pool_id: str)

Opens a pool. Sends an asynchronous request to Toloka.

After opening the pool, tasks can be assigned to Tolokers.

Parameters description

ParametersTypeDescription
pool_idstr

The ID of the pool.

  • Returns:

    An object to track the progress of the operation. If the pool is already opened then None is returned.

  • Return type:

    Optional[PoolOpenOperation]

Examples:

Opening a pool.

open_op = toloka_client.open_pool(pool_id='1080020')
toloka_client.wait_operation(open_op)

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