Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Data Fields
Cron Class Reference
Inheritance diagram for Cron:
Cli

Public Member Functions

 run ()
 
- Public Member Functions inherited from Cli
 __construct (CurlTransport $transport)
 
 execute ($command, $options=[])
 

Data Fields

const PARAM_CRON_RUN = 'cron:run'
 
- Data Fields inherited from Cli
const URL = 'dev/tests/functional/utils/command.php'
 

Detailed Description

Handle cron for tests executions.

Definition at line 14 of file Cron.php.

Member Function Documentation

◆ run()

run ( )

Run cron.

Returns
void

Definition at line 26 of file Cron.php.

27  {
28  parent::execute(Cron::PARAM_CRON_RUN);
29  sleep(60); // According to Magento 2 documentation cron job running takes 600 ms
30  }

Field Documentation

◆ PARAM_CRON_RUN

const PARAM_CRON_RUN = 'cron:run'

Parameter for cron run command.

Definition at line 19 of file Cron.php.


The documentation for this class was generated from the following file: