Class humhub\commands\CronController

Inheritancehumhub\commands\CronController » yii\console\Controller

Cronjobs

Public Methods

Hide inherited methods

MethodDescriptionDefined By
actionDaily() Force run of the daily cron jobs humhub\commands\CronController
actionHourly() Force run of the hourly cron jobs humhub\commands\CronController
actionRun() Runs the cron jobs humhub\commands\CronController

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
runDaily() Runs the daily cron jobs humhub\commands\CronController
runHourly() Runs the hourly cron jobs humhub\commands\CronController

Events

Hide inherited events

EventTypeDescriptionDefined By
EVENT_ON_DAILY_RUN \humhub\commands\Event An event that is triggered when the daily cron is started. humhub\commands\CronController
EVENT_ON_HOURLY_RUN \humhub\commands\Event An event that is triggered when the hourly cron is started. humhub\commands\CronController

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
MUTEX_ID 'cron-mutex' humhub\commands\CronController

Method Details

actionDaily() public method

Force run of the daily cron jobs

public void actionDaily ( )
actionHourly() public method

Force run of the hourly cron jobs

public void actionHourly ( )
actionRun() public method

Runs the cron jobs

public integer actionRun ( )
return integer

Status code

runDaily() protected method

Runs the daily cron jobs

protected void runDaily ( $force false )
$force boolean
throws Exception
runHourly() protected method

Runs the hourly cron jobs

protected void runHourly ( $force false )
$force boolean

Event Details

EVENT_ON_DAILY_RUN event of type \humhub\commands\Event

An event that is triggered when the daily cron is started.

EVENT_ON_HOURLY_RUN event of type \humhub\commands\Event

An event that is triggered when the hourly cron is started.