Свойство | Тип | Описание | |
---|---|---|---|
$logLevel | Current log level of this worker. |
Свойство | Тип | Описание | |
---|---|---|---|
$interval | Interval to sleep for between checking schedules. |
Метод | Описание | |
---|---|---|
enqueueDelayedItemsForTimestamp ( DateTime | integer $timestamp ) | Schedule all of the delayed jobs for a given timestamp. | |
handleDelayedItems ( DateTime | integer $timestamp = null ) | Handle delayed items for the next scheduled timestamp. | |
log ( string $message ) | Output a given log message to STDOUT. | |
work ( integer $interval = null ) | The primary loop for a worker. |
Метод | Описание | |
---|---|---|
sleep ( ) | Sleep for the defined interval. |
Метод | Описание | |
---|---|---|
updateProcLine ( string $status ) | Update the status of the current worker process. |
public enqueueDelayedItemsForTimestamp ( DateTime | integer $timestamp ) | ||
$timestamp | DateTime | integer | Search for any items up to this timestamp to schedule. |
public handleDelayedItems ( DateTime | integer $timestamp = null ) | ||
$timestamp | DateTime | integer | Search for any items up to this timestamp to schedule. |