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

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

Hold configurations for the Google\Cloud\Core\Batch\BatchRunner.

Namespace

Google \ Cloud \ Core \ Batch

Methods

getJobFromId

Get the job with the given identifier.

Parameter
NameDescription
identifier string

Unique identifier of the job.

Returns
TypeDescription
Google\Cloud\Core\Batch\JobInterface|null

getJobFromIdNum

Get the job with the given numeric id.

Parameter
NameDescription
idNum int

A numeric id of the job.

Returns
TypeDescription
Google\Cloud\Core\Batch\JobInterface|null

registerJob

Register a job for executing in batch.

Parameters
NameDescription
identifier string

Unique identifier of the job.

callback callable

Callback that accepts the job $idNum and returns a JobInterface instance.

Returns
TypeDescription
void

getJobs

Get all the jobs indexed by the job's identifier.

Returns
TypeDescription
arrayAssociative array of JobInterface instances keyed by a string identifier.