ssossossosso
Documentation Home »Installation Guide »Perform Post-Install Configuration
current version

Perform Post-Install Configuration

Activate Background Tasks

To launch scheduled execution of the operations required by the Oro application, set up a cron command with the oro:cron CLI command as an application entry point (see the sample configuration below).

*/1 * * * * /path/to/php [$folder_location]/orocommerce/app/console oro:cron --env=prod > /dev/null

See also

You can also create your own commands that are executed in the background at certain times. Read more about it in the chapter about executing cron commands.

Time consuming or blocking tasks should usually be performed in the background to avoid negative impact on the application response time. For example, OroPlatform uses the MessageQueueComponent together with MessageQueueBundle to asynchronously run maintenance tasks. Ensure that one or more consumers are always running:

/path/to/php [$folder_location]/orocommerce/app/console oro:message-queue:consume --env=prod > /dev/null

Important

To ensure that required number of consumers keeps running, set up a supervisor. Here is example of supervisord configuration.

Note

If a socket server is running, it checks periodically whether consumers are alive. If no consumers are alive, a flash message notification appears informing users about the consumers’ state. The same check is performed upon a user logging in.

Browse maintained versions:
current1.4