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

Commands not running automaticallty #43

Open
Karim-Mannai opened this issue Mar 21, 2021 · 3 comments
Open

Commands not running automaticallty #43

Karim-Mannai opened this issue Mar 21, 2021 · 3 comments

Comments

@Karim-Mannai
Copy link

I have a command scheduled to run every minute,
when I type php bin/console schedule:list --detail
I can see next run in 1 mn. But it doesn't run autimarically until I type
php bin/console schedule:run
Any ideas how to make it run automatically ? Thanks

@kbond
Copy link
Member

kbond commented Mar 21, 2021

Hello, you need to setup your production server to run the schedule:run command every minute (cron job).

@Karim-Mannai
Copy link
Author

I'm using Symfony 4.4 and still in dev mode (Windows OP).
here's the eror I got when I setup the symfony.cloud.yaml

In Parser.php line 720:

Reference " * * * *" does not exist at line 1 (near "spec: * * * * *").

@kbond
Copy link
Member

kbond commented Mar 22, 2021

Oh, you're using Symfony Cloud? I've never actually tested or seen it being used with this bundle in the wild so this will be a learning experience.

I'm seeing my docs linked above are outdated/incorrect. What about:

crons:
    zenstruck_schedule:
        # every minute
        spec: * * * * *
        cmd: croncape bin/console schedule:run

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

No branches or pull requests

2 participants