Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Example: "crontab -e" (assuming you are logged in under the same user which is running your apache or Nginx
  2. Add the code below 
Code Block
languagebash
themeMidnight
###### Magento 2 EE w/ Subscriptions
* * * * * flock -n /{path_to_magento}/var/locks/cron-run.lock php /{path_to_magento}/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /{path_to_magento}/var/log/magento.cron.log
* * * * * php /{path_to_magento}/update/cron.php >> /{path_to_magento}/var/log/update.cron.log
* * * * * php /{path_to_magento}/bin/magento setup:cron:run >> /{path_to_magento}/var/log/setup.cron.log

*/5 * * * * flock -n /{path_to_magento}/var/locks/sub-generate.lock php /{path_to_magento}/bin/magento tnw_subscriptions:quotes:generate >> /{path_to_magento}/var/log/sub-generation.cron.log
*/5 * * * * flock -n /{path_to_magento}/var/locks/sub-process.lock php /{path_to_magento}/bin/magento tnw_subscriptions:process >> /{path_to_magento}/var/log/sub-processing.cron.log

...