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 a pool that is to be updated. Sends an asynchronous request to Toloka.

To make changes to a pool, close it before updating parameters. If you don't open the pool after updating, it opens automatically in 15 minutes.

Parameters description

ParametersTypeDescription
pool_idstr

The ID of the pool to be closed.

  • Returns:

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

  • Return type:

    Optional[PoolCloseOperation]

Examples:

close_op = toloka_client.close_pool_for_update_async(pool_id='1080020')
toloka_client.wait_operation(close_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