Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 3.03 KB

config-cli-subcommands-cron.md

File metadata and controls

59 lines (44 loc) · 3.03 KB
layout group subgroup title menu_title menu_node menu_order version github_link redirect_from
default
config-guide
04_CLI
Configure and run cron
Configure and run cron
100
2.0
config-guide/cli/config-cli-subcommands-cron.md
/guides/v1.0/config-guide/cli/config-cli-subcommands-cron.html

Overview of cron {#config-cli-cron-overview}

{% include config/cron-overview.md %}

To run cron in a web browser, see Secure cron.php to run in a browser

First steps {#config-cli-before}

{% include install/first-steps-cli.html %} In addition to the command arguments discussed here, see Common arguments.

Run cron from the command line {#config-cli-cron-group-run}

Command options:

magento cron:run [--group="<cron group name>"]

where --group specifies the cron group to run (omit this option to run cron for all groups)

To set up custom cron jobs and groups, see [Configure custom cron jobs and cron groups]({{ page.baseurl }}config-guide/cron/custom-cron.html).

You must run cron twice: the first time to discover tasks to run and the second time to run the tasks themselves.

Run cron in the background

This section discusses how to run all Magento cron jobs every minute, which is the recommended interval for both Magento Community Edition (CE) and Enterprise Edition (EE).

Run Magento cron jobs as the Magento file system owner.

{% include config/setup-cron.md %}

Related topics