Copied!

BulkTranslationJobStartedEvent

BulkTranslationJobStartedEvent.php : 25
Final
Extends Event

Emitted once a pending bulk translation job has been moved to {@see JobStatus::STATUS_IN_PROGRESS} and its worker starts processing the items. A job that is already in progress when the worker picks it up (a retry, or a message delivered again) does not emit it again.

Dispatched only by the worker that wins the atomic claim on the pending job, so a start is not reported twice. If that worker crashes after the claim and before the dispatch, the resumed job is already in progress and the event is not emitted, so listeners may miss it. A job whose run user was deleted is claimed without this event: its items fail at once and only BulkTranslationJobFinishedEvent is emitted.

Properties

public $creatorId read-only

BulkTranslationJobStartedEvent.php : 29
public int|null $creatorId

public $jobId read-only

BulkTranslationJobStartedEvent.php : 28
public int $jobId

public $jobTitle read-only

BulkTranslationJobStartedEvent.php : 30
public string|null $jobTitle

Methods

public__construct()

BulkTranslationJobStartedEvent.php : 27
public __construct(int $jobId, int|null $creatorId, string|null $jobTitle)

Parameters

Name Type Default value Description
$jobId int - -
$creatorId int|null - -
$jobTitle string|null - -

publicisPropagationStopped()

Event.php : 35
public isPropagationStopped() : bool

Return values

bool

publicstopPropagation()

Event.php : 47

Stops the propagation of the event to further event listeners.

public stopPropagation() : void

If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().