Tasks
archive_task
TagmeClientAdvanced.archive_task(task_id: str, organization_id: str | None = None, ) → None
Archive task.
Parameters |
* * |
assign_assignment
TagmeClientAdvanced.assign_assignment(task_id: str, item_id: str, marker_id: str, expired_after: datetime, original_assignment_id: str | None = None, price: float | None = None, is_increase_overlap: bool | None = None, is_release_to_pool_on_expire: bool | None = None, organization_id: str | None = None, ) → None
Assign an assignment in item
Parameters |
* * * * * * * * |
Returns |
None. |
check_task
TagmeClientAdvanced.check_task(task_id: str, organization_id: str | None = None, ) → CheckTaskResult
Check task settings before start.
Parameters |
* * |
Returns |
current task settings. |
complete_task
TagmeClientAdvanced.complete_task(task_id: str, organization_id: str | None = None, ) → TaskData
Complete task.
Parameters |
* * |
Returns |
task data. |
create_and_start_task
TagmeClientAdvanced.create_and_start_task(config: ProjectConfig, project_id: str, task_name: str | None = None, start_task: bool = True, organization_id: str | None = None, ) → TaskData
(deprecated) Create task inside project and start it. Use separate methods instead.
Parameters |
* * * * * |
Returns |
created task. |
create_project_and_task
TagmeClientAdvanced.create_project_and_task(config: ProjectConfig, start_task: bool = True, organization_id: str | None = None, ) → Tuple[str, TaskData]
(deprecated) Create project and task for it. Use ‘create_task’ and ‘create_project’ or ‘create_project_by_config’ instead.
Parameters |
* * * |
Returns |
project_id and created task. |
create_task
TagmeClientAdvanced.create_task(task: TaskDataRequest | TaskData | dict, organization_id: str | None = None, ) → TaskData
Create new task.
Parameters |
* * |
Returns |
created task. |
create_task_in_project
TagmeClientAdvanced.create_task_in_project(config: ProjectConfig, project_id: str, task_name: str | None = None, organization_id: str | None = None, ) → TaskData
(deprecated) Create task inside project. Use ‘create_task’ instead.
Parameters |
* * * * |
Returns |
created task. |
delete_task_payload
TagmeClientAdvanced.delete_task_payload(task_id: str, organization_id: str | None = None, ) → None
Delete payload from task.
Parameters |
* * |
duplicate_task
TagmeClientAdvanced.duplicate_task(original_task: TaskData | dict, task: dict = None, organization_id: str | None = None, ) → TaskData
Create duplicate of task.
Parameters |
* * * |
Returns |
created task. |
get_task
TagmeClientAdvanced.get_task(task_id: str, organization_id: str | None = None, with_files_count: bool = False, ) → TaskData
Get task by id.
Parameters |
* * |
Returns |
task data. |
get_task_files_count
TagmeClientAdvanced.get_task_files_count(task_id: str, types: List[str] | None = None, organization_id: str | None = None, ) → TaskFilesCount
Get count of files in task by types.
Parameters |
* * * |
Returns |
files count for requested types. |
get_task_hierarchy
TagmeClientAdvanced.get_task_hierarchy(task_id: str, ) → TaskHierarchy
Get project id and organization id for task.
Parameters | task_id – id of task. |
---|---|
Returns |
Object which contains project_id and organization_id of task. |
get_task_info
TagmeClientAdvanced.get_task_info(task_id: str, organization_id: str | None = None, ) → Dict
Get information about task bucket in cloud.
Parameters |
* * |
Returns |
bucket information. |
get_task_payload
TagmeClientAdvanced.get_task_payload(task_id: str, organization_id: str | None = None, ) → dict
Get task payload.
Parameters |
* * |
Returns |
task payload. |
get_tasks
TagmeClientAdvanced.get_tasks(project_id: str | None = None, price_min: float | None = None, price_max: float | None = None, priority_min: int | None = None, priority_max: int | None = None, query: str | None = None, page: int | None = None, size: int | None = None, organization_id: str | None = None, update_date_from: str | None = None, ) → List[TaskData]
Get tasks matching by filter.
Parameters |
* * * * * * * * * * |
Returns |
list of tasks. |
get_tasks_advanced
TagmeClientAdvanced.get_tasks_advanced(task_ids: Sequence[str] | None = None, project_ids: Sequence[str] | None = None, organization_id: str | None = None, with_empty: bool = True, with_payload: bool = False, with_project_pipeline: bool | dict = False, archived: bool | None = None, ) → List[TaskData]
Get tasks matching by filter.
Parameters |
* * * * * * * |
Returns |
list of tasks. |
increase_item_overlap
TagmeClientAdvanced.increase_item_overlap(task_id: str, item_id: str, organization_id: str | None = None, ) → Item
Increase overlap of an item
Parameters |
* * |
Returns |
Item info. |
load_task_payload
TagmeClientAdvanced.load_task_payload(task: TaskData, ) → None
Add payload to task (to ‘payload’ field).
Parameters | task – task to load payload for. |
---|
poll_for_task_state
TagmeClientAdvanced.poll_for_task_state(task_id: str, state: TaskState, retry_amount: int = 15, wait_seconds: float = 3, organization_id: str | None = None, ) → TaskState
Wait while task has needed state.
Parameters |
* * * * * |
Returns |
task state after finish of polling. |
put_item_overlap
TagmeClientAdvanced.put_item_overlap(task_id: str, item_id: str, overlap: int, organization_id: str | None = None, ) → Item
Change overlap of an item
Parameters |
* * * |
Returns |
Item info. |
remove_task
TagmeClientAdvanced.remove_task(task_id: str, organization_id: str | None = None, ) → None
Remove task
Parameters |
* * |
set_task_payload
TagmeClientAdvanced.set_task_payload(task_id: str, payload: dict, organization_id: str | None = None, ) → dict
Set task payload.
Parameters |
* * * |
Returns |
new task payload. |
start_task
TagmeClientAdvanced.start_task(task_id: str, organization_id: str | None = None, retry_amount: int = 15, wait_seconds: float = 3, ) → TaskData
Start task.
Parameters |
* * * * |
Returns |
task data. |
stop_task
TagmeClientAdvanced.stop_task(task_id: str, organization_id: str | None = None, ) → TaskData
Stop task and wait for it to stop.
Parameters |
* * |
Returns |
task data. |
unarchive_task
TagmeClientAdvanced.unarchive_task(task_id: str, organization_id: str | None = None, ) → None
Unarchive task.
Parameters |
* * |
unassign_assignment
TagmeClientAdvanced.unassign_assignment(task_id: str, assignment_id: str, is_keep_price: bool | None = None, is_decrease_overlap: bool | None = None, organization_id: str | None = None, ) → None
Unassign previously assigned assignment
Parameters |
* * * * |
Returns |
None. |
update_task
TagmeClientAdvanced.update_task(task: TaskData | dict, organization_id: str | None = None, ) → TaskData
Update task.
Parameters |
* * |
Returns |
updated task. |
upload_folder_pdf
TagmeClientAdvanced.upload_folder_pdf(task_id: str, folder: str | Path, cloud_client: Any | None = None, exclude_ext_filter: Set[str] | None = None, organization_id: str | None = None, tqdm_on: bool | str = False, ) → UploadFilesResult
Upload folder with pdf-files. Transforms pdf-files into png images before uploading.
Parameters |
* * * * * |
Returns |
uploaded files and errors. |