Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cron spec issue #9

Open
danharper83 opened this issue Apr 21, 2020 · 1 comment
Open

Cron spec issue #9

danharper83 opened this issue Apr 21, 2020 · 1 comment

Comments

@danharper83
Copy link

Hi,

When I use the default cron spec in the template it won't push up due to the following error message.

"The minimum interval between cron runs is 5 minutes, even if specified as less."

I guess because the cron spec in the platform.app.yml is

crons:
    magento:
        spec: "* * * * *"
        cmd: "php bin/magento cron:run"

Should it not be?

crons:
    magento:
        spec: "*/5 * * * *"
        cmd: "php bin/magento cron:run"

Cheers Dan

@rouaks
Copy link

rouaks commented Nov 24, 2020

Hi @danharper83,

You are absolutely right, the correct command should be like your suggestion but the template needs to be generic for all the platform's plan.

Indeed, in the basic plan, the default interval time will be every 5 minutes and for a specific plan you will be allowed to set it under 5 minutes.

Best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants