blackbird/cronparameters

There is no license information available for the latest version (1.0.2) of this package.

1.0.2 2021-12-06 15:13 UTC

This package is auto-updated.

Last update: 2024-10-29 05:54:03 UTC


README

Latest Stable Version License: MIT

This module allows you to add PHP parameters on Magento 2 cronjob installation. The free source is available at the GitHub repository.

Setup

Get the package

Zip Package:

Unzip the package in app/code/Blackbird/CronParameters, from the root of your Magento instance.

Composer Package:

composer require blackbird/cronparameters

Install the module

Go to your Magento root, then run the following Magento command:

php bin/magento setup:upgrade

If you are in production mode, do not forget to recompile and redeploy the static resources, or to use the --keep-generated option.

Administrators

When running magento 2 command php bin/magento cron:install" you can add -p="my php parameters" or --params="my php parameters".

  • Running with --params
php bin/magento cron:install --params="-d max_execution_time=xxx"
  • or with -p
php bin/magento cron:install -p="-d max_execution_time=xxx"
  • Results in something like: (by running crontab -l)
* * * * * /usr/bin/php -d max_execution_time=xxx {magentoRoot}/bin/magento cron:run | grep -v "Ran jobs by schedule" >> {magentoLog}/magento.cron.log

Support

Contact

For further information, contact us:

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.

That's all folks!