Class yii\queue\cli\Signal

Inheritanceyii\queue\cli\Signal
Deprecated since version since 2.0.2 and will be removed in 3.0. Use SignalLoop instead.
Source Code https://github.com/yiisoft/yii2-queue/blob/master/cli/Signal.php

Process Signal Helper.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
isExit() Checks exit signals Used mainly by yii\queue\Queue to check, whether job execution loop can be continued. yii\queue\cli\Signal
setExitFlag() Sets exit flag to true Method can be used to simulate exit signal for methods that use isExit() to check whether execution loop can be continued. yii\queue\cli\Signal

Method Details

isExit() public static method

Checks exit signals Used mainly by yii\queue\Queue to check, whether job execution loop can be continued.

public static boolean isExit ( )
setExitFlag() public static method

Sets exit flag to true Method can be used to simulate exit signal for methods that use isExit() to check whether execution loop can be continued.

public static void setExitFlag ( )