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
###### Native Magento 2 EECRON w/jobs
Subscriptions
* * * * * flock -n /{path_to_magento}var/www/html/var/locks/cron-run.lock php /{path_to_magento}var/www/html/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /{path_to_magento}/var/www/html/var/log/magento.cron.log
* * * * * php /{path_to_magento}/var/www/html/update/cron.php >> /{path_to_magento}/var/www/html/var/log/update.cron.log
* * * * * php /{path_to_magento}/var/www/html/bin/magento setup:cron:run >> /{path_to_magento}var/www/html/var/log/setup.cron.log

*/5### *mPower *CRON *jobs
* 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/www/html/var/locks/sub-process.lock php /{path_to_magento}/var/www/html/bin/magento tnw_subscriptions:process >> /{path_to_magento}/var/www/html/var/log/sub-processing.cron.log

...

Info

First three lines are standard Magento CRON jobs, which you should already have, those are configured to run every minute (per Magento documentation). The only change we suggest is to add "flock" capability to make sure the CRON wont won't run if the other one has not finished running yet.

The last two lines is are what you will need to trigger (every 5 minutes). The first one automatically generates upcoming quotes of the upcoming orders and the last one does the processing of orders.

...

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@13638
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "cron" and type = "page" and space = "POW"
labelscron


Page Properties
hiddentrue


Related issues


...