1

I want to run a cron once a day at midnight so have added this command to crontab -e.

00 00 * * * /usr/local/bin/php /home/../public_html/bin/magento cron:run --group="crongroup"

but not sure what values should use for these fields

<group id="crongroup">

<schedule_generate_every>5</schedule_generate_every>

<schedule_ahead_for>10</schedule_ahead_for>

<schedule_lifetime>5</schedule_lifetime>

<history_cleanup_every>10</history_cleanup_every>

<history_success_lifetime>60</history_success_lifetime>

<history_failure_lifetime>600</history_failure_lifetime>

Please let me know which values need to be change in the above code so that cron can run every night without being missed.

1

1 Answer 1

3

Checkout https://crontab.guru/, you can find out how to correctly configure your cronjobs

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.