Increase the overlap of a task when you need more Tolokers to complete it.
Connect the Toloka-Kit library to your script.
import toloka.client as toloka
Replace the sample OAuth token with your own one.
toloka_client = toloka.('AQC2AGAJgyNSA8CtpdO9MWy_QEB6s6kDjHUoElE', 'PRODUCTION');
Find out the ID of the task which you want to modify. Then change the task overlap calling the
task = toloka_client.('00022da5a7--6388b40547c84000494cdc5a', overlap=5)
patch_task() request will return the Task class object. You can use its attributes to print the information you need.
You should get an output with the task ID and modified overlap which looks like this.
import toloka.client as tolokatoloka_client = toloka.TolokaClient('AQC2AGAJgyNSA8CtpdO9MWy_QEB6s6kDjHUoElE', 'PRODUCTION')task = toloka_client.patch_task('00022da5a7--6388b40547c84000494cdc5a', overlap=5)print(task.id, task.overlap)