Google Cloud PHP shared dependency, providing functionality useful to all components. Client - Class JobInterface (1.72.1)

Reference documentation and code samples for the Google Cloud PHP shared dependency, providing functionality useful to all components. Client class JobInterface.

The JobInterface represents any job that can be serialized and run in a separate process via the Batch daemon.

Namespace

Google \ Cloud \ Core \ Batch

Methods

run

Runs the job loop. This is expected to be a blocking call.

identifier

Return the job identifier

Returns
Type Description
string

numWorkers

Returns the number of workers for this job.

Returns
Type Description
int

flush

Finish any pending activity for this job.

Parameter
Name Description
items array
Returns
Type Description
bool