Summary of task objects
Task
objects represent operations you performed using the SDK or the UI, such as importing and exporting annotations. The Task
object can make your workflow synchronous, especially for longer operations.
DataUpsertTask
is a subclass of Task
that represents data row upsert operations.
wait_till_done
, which waits until the task is completed by periodically querying the server to update the task attributes. This method takes two parameters:
timeout_seconds
: Represents the maximum time wait_till_done
can block your code. The default value is five minutes, which should be increased for longer tasks.check_frequency
: Defines how often your task queries the server to update the task attributes, which defaults to two seconds. This is useful to limit the amount of API calls against our server in a given time frame.client.get_task_by_id()
.