Skip to main content

work_items

Creates, updates, deletes, gets or lists a work_items resource.

Overview

Namework_items
TypeResource
Idgoogle.dataflow.work_items

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_jobs_work_items_report_statusexecprojectId, jobIdReports the status of dataflow WorkItems leased by a worker.
projects_jobs_work_items_leaseexecprojectId, jobIdLeases a dataflow WorkItem to run.
projects_locations_jobs_work_items_report_statusexecprojectId, location, jobIdReports the status of dataflow WorkItems leased by a worker.
projects_locations_jobs_work_items_leaseexecprojectId, location, jobIdLeases a dataflow WorkItem to run.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
jobIdstring
locationstring
projectIdstring

Lifecycle Methods

Reports the status of dataflow WorkItems leased by a worker.

EXEC google.dataflow.work_items.projects_jobs_work_items_report_status 
@projectId='{{ projectId }}' --required,
@jobId='{{ jobId }}' --required
@@json=
'{
"workerId": "{{ workerId }}",
"workItemStatuses": "{{ workItemStatuses }}",
"currentWorkerTime": "{{ currentWorkerTime }}",
"location": "{{ location }}",
"unifiedWorkerRequest": "{{ unifiedWorkerRequest }}",
"projectNumber": "{{ projectNumber }}"
}';