JobRun
in package
Read onlyYes
FinalYes
Job run
Information about the execution of a single job
Tags
Table of Contents
Properties
- $className : string
- Class name
- $duration : int|null
- Job duration in milliseconds
- $memoryPeak : int|null
- Job memory usage peak in kilobytes (base 10)
- $pid : int
- Process ID on server
- $runId : int|string
- Run ID (Snowflake ID)
- $serverId : int
- Server ID
- $startedAt : DateTimeImmutable
- Job start time
- $status : JobStatus
- Job status (running, fail…)
Methods
- __construct() : mixed
- Constructor
Properties
$className
Class name
public
string
$className
$duration
Job duration in milliseconds
public
int|null
$duration
= null
$memoryPeak
Job memory usage peak in kilobytes (base 10)
public
int|null
$memoryPeak
= null
$pid
Process ID on server
public
int
$pid
$runId
Run ID (Snowflake ID)
public
int|string
$runId
$serverId
Server ID
public
int
$serverId
$startedAt
Job start time
public
DateTimeImmutable
$startedAt
$status
Job status (running, fail…)
public
JobStatus
$status
Methods
__construct()
Constructor
public
__construct(int|string $runId, string $className, int $serverId, int $pid, DateTimeImmutable $startedAt, JobStatus $status[, int|null $duration = null ][, int|null $memoryPeak = null ]) : mixed
Parameters
- $runId : int|string
- $className : string
- $serverId : int
- $pid : int
- $startedAt : DateTimeImmutable
- $status : JobStatus
- $duration : int|null = null
- $memoryPeak : int|null = null