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 | Type | Description |
|---|---|---|
pool_id | str | The ID of the pool to be closed. |
Returns:
The pool with updated status.
Return type:
Examples:
open_pool = next(toloka_client.get_pools(status='OPEN'))toloka_client.close_pool(pool_id=open_pool.id)Last updated: August 28, 2023