Skip to content
Corex

BoundedJob

Corex\Jobs\BoundedJob · class · Core layer

Immutable state of one bounded, resumable background operation.

__construct(int $id, string $kind, int $actorId, string $state, string $cursor, int $total, int $processed, int $succeeded, int $failed, string $inputHash, ?string $resultArtifact, ?string $errorSummary, int $attempts, ?DateTimeImmutable $nextRunAt, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt, ?DateTimeImmutable $finishedAt)

Section titled “__construct(int $id, string $kind, int $actorId, string $state, string $cursor, int $total, int $processed, int $succeeded, int $failed, string $inputHash, ?string $resultArtifact, ?string $errorSummary, int $attempts, ?DateTimeImmutable $nextRunAt, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt, ?DateTimeImmutable $finishedAt)”

queued(string $kind, int $actorId, int $total, string $inputHash, DateTimeImmutable $createdAt): self

Section titled “queued(string $kind, int $actorId, int $total, string $inputHash, DateTimeImmutable $createdAt): self”

advance(string $cursor, int $processed, int $succeeded, int $failed, ?DateTimeImmutable $nextRunAt, DateTimeImmutable $updatedAt): self

Section titled “advance(string $cursor, int $processed, int $succeeded, int $failed, ?DateTimeImmutable $nextRunAt, DateTimeImmutable $updatedAt): self”

complete(?string $resultArtifact, DateTimeImmutable $now): self

Section titled “complete(?string $resultArtifact, DateTimeImmutable $now): self”

fail(string $errorSummary, DateTimeImmutable $now): self

Section titled “fail(string $errorSummary, DateTimeImmutable $now): self”