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 configuration changes #3935

Closed
alexthunder3 opened this issue Apr 10, 2024 · 0 comments · Fixed by #4005
Closed

Cron configuration changes #3935

alexthunder3 opened this issue Apr 10, 2024 · 0 comments · Fixed by #4005

Comments

@alexthunder3
Copy link
Contributor

Where on docs.platform.sh should be changed?

https://docs.platform.sh/create-apps/app-reference/single-runtime-image.html#cron-commands

What exactly should be updated?

Not sure since when, but the cron configuration used to be like:

crons:
    name:
        spec: ' * * * * *'
        cmd: 'echo hello'

but I found the following version in a project using a fresher psh template:

crons:
    name:
        spec: ' * * * * *'
        commands: 
            start: 'echo hello'

which I originally thought is wrong, but after checking psh template and docs, looks like the correct version.
So what I am currently missing right now and would love to have available in the docs is:

  • the "old way" seems to still work, but will this work forever or will it be deprecated at some point?

Thanks!

Additional context

No response

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

Successfully merging a pull request may close this issue.

1 participant