Toloka documentation

open_pool_async

toloka.client.TolokaClient.open_pool_async | Source code

open_pool_async(self, pool_id: str)

Starts distributing tasks from the pool, asynchronous version

Tolokers will see your tasks only after that call.

Parameters Description

Parameters Type Description
pool_id str

ID of the pool that will be started.

  • Returns:

    An operation upon completion of which you can get the pool with new status. If pool is already opened then None is returned.

  • Return type:

    Optional[PoolOpenOperation]

Examples:

Open the pool for Tolokers.

open_pool = toloka_client.open_pool(pool_id='1')
toloka_client.wait_operation(open_pool)