Toloka documentation

close_pool_for_update_async

toloka.client.TolokaClient.close_pool_for_update_async | Source code

close_pool_for_update_async(self, pool_id: str)

Closes pool for update, asynchronous version

Parameters Description

Parameters Type Description
pool_id str

ID of the pool that will be closed for update.

  • Returns:

    An operation upon completion of which you can get the pool with updated status. If pool is already closed for update then None is returned.

  • Return type:

    Optional[PoolCloseOperation]

Examples:

close_op = toloka_client.close_pool_for_update_async(pool_id='1')
toloka_client.wait_operation(close_op)