BasicDruidJobWatcher

Implements \PhpDruidIngest\Interfaces\IDruidJobWatcher

package

Default

Methods

Called when a job's status moves to Completed state.

onJobCompleted() : mixed

Response

mixed

Called when a job's status moves to a Failed state.

onJobFailed() : mixed

Response

mixed

Called when a job's status is still in a Running/Pending state after watching period ends.

onJobPending() : mixed

Response

mixed

If a job watching can be cancelled, call this to cancel.

stopWatchingJob() : mixed

Response

mixed

Begin watching given job id.

watchJob(string $jobId) : mixed

Calls either onJobCompleted or onJobFailed unless stopWatchingJob is called first. If given job is already completed or failed, the appropriate callback will be called.

Arguments

$jobId

string

Response

mixed

Properties

Druid Indexing Task Job Id

watchingJobId : string
var

Type(s)

string