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

docs: better description for the cron attribute of coder_script #353

Open
jatcod3r opened this issue Feb 28, 2025 · 2 comments
Open

docs: better description for the cron attribute of coder_script #353

jatcod3r opened this issue Feb 28, 2025 · 2 comments

Comments

@jatcod3r
Copy link

jatcod3r commented Feb 28, 2025

Was playing around with the cron attribute, and found out that it parses expressions in seconds minutes hours ... instead of minutes hours .... I can see here that the Coder Agent is configured to run this way

Would be nice to get this documented as I was expecting my script to run every 5 minutes with this cron expression, but instead it was running every 5 seconds. It also conflicts with my understanding of other cron settings on Coder such as CODER_QUIET_HOURS_DEFAULT_SCHEDULE, which ingests an expression following the minutes hours ... format.

@matifali
Copy link
Member

matifali commented Mar 4, 2025

I will consider this a bug if we are not following the UNIX cron format

We can address this with document changes for now.

@matifali
Copy link
Member

@jatcod3r would you like to submit a PR addressing this? I can help if you get into any issues. Thanks.

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