Copied!

Job

Job.php : 13
Read-only
Final

Properties

public $cancelledAt

Job.php : 32
public DateTimeImmutable|null $cancelledAt = null

public $createdAt

Job.php : 27
public DateTimeImmutable $createdAt

public $creatorId

Job.php : 25
public int|null $creatorId

public $failedItems

Job.php : 36
public int $failedItems = 0

public $finishedAt

Job.php : 31
public DateTimeImmutable|null $finishedAt = null

public $id

Job.php : 20
public int $id

public $partiallyRemoved

Job.php : 39
public bool $partiallyRemoved = false

public $payload

Job.php : 38
public array<string|int, mixed> $payload = []

public $processedItems

Job.php : 34
public int $processedItems = 0

public $queuedAt

Job.php : 29
public DateTimeImmutable $queuedAt

public $reviewItems

Job.php : 37
public int $reviewItems = 0

public $runUserId

Job.php : 26
public int|null $runUserId

public $scope

Job.php : 23
public Scope $scope

public $startedAt

Job.php : 30
public DateTimeImmutable|null $startedAt = null

public $status

Job.php : 22
public JobStatus $status

public $successfulItems

Job.php : 35
public int $successfulItems = 0

public $targetLanguageCodes

Job.php : 24
public array<string|int, mixed> $targetLanguageCodes

public $title

Job.php : 21
public string|null $title

public $totalItems

Job.php : 33
public int $totalItems = 0

public $updatedAt

Job.php : 28
public DateTimeImmutable $updatedAt

Methods

public__construct()

Job.php : 19
public __construct(int $id, string|null $title, JobStatus $status, Scope $scope, array<int, string> $targetLanguageCodes, int|null $creatorId, int|null $runUserId, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt, DateTimeImmutable $queuedAt[, DateTimeImmutable|null $startedAt = null ][, DateTimeImmutable|null $finishedAt = null ][, DateTimeImmutable|null $cancelledAt = null ][, int $totalItems = 0 ][, int $processedItems = 0 ][, int $successfulItems = 0 ][, int $failedItems = 0 ][, int $reviewItems = 0 ][, array<string, mixed> $payload = [] ][, bool $partiallyRemoved = false ])

Parameters

Name Type Default value Description
$id int - -
$title string|null - -
$status JobStatus - -
$scope Scope - -
$targetLanguageCodes array<int, string> - -
$creatorId int|null - -
$runUserId int|null - -
$createdAt DateTimeImmutable - -
$updatedAt DateTimeImmutable - -
$queuedAt DateTimeImmutable - -
$startedAt DateTimeImmutable|null null -
$finishedAt DateTimeImmutable|null null -
$cancelledAt DateTimeImmutable|null null -
$totalItems int 0 -
$processedItems int 0 -
$successfulItems int 0 -
$failedItems int 0 -
$reviewItems int 0 -
$payload array<string, mixed> [] -
$partiallyRemoved bool false -

publicisRetryable()

Job.php : 45

Only a finished job with failed items can be retried. The retry claim repeats this condition in SQL.

public isRetryable() : bool

Return values

bool