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

chore: add details on setting cron timezone for rebalancing schedule #250

Merged
merged 3 commits into from
Dec 6, 2023

Conversation

mikenorgate
Copy link
Contributor

@mikenorgate mikenorgate commented Dec 6, 2023

  • cron (String) Cron expression defining when the schedule should trigger.

    The cron expression can optionally include the CRON_TZ variable at the beginning to specify the timezone in which the schedule should be interpreted.

    Example:

    CRON_TZ=America/New_York 0 12 * * ?
    

    In the example above, the CRON_TZ variable is set to "America/New_York" indicating that the cron expression should be interpreted in the Eastern Time (ET) timezone.

    To retrieve a list of available timezone values, you can use the following API endpoint:

    GET https://api.cast.ai/v1/time-zones

    When using the CRON_TZ variable, ensure that the specified timezone is valid and supported by checking the list of available timezones from the API endpoint. If the CRON_TZ variable is not specified, the cron expression will be interpreted in the UTC timezone.

@mikenorgate mikenorgate requested a review from a team as a code owner December 6, 2023 07:27
@mikenorgate mikenorgate force-pushed the cron-tz-documentation branch from fd2b2b9 to fc0b17e Compare December 6, 2023 11:03
@mikenorgate mikenorgate merged commit 6d229ae into master Dec 6, 2023
10 checks passed
@mikenorgate mikenorgate deleted the cron-tz-documentation branch December 6, 2023 11:23
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 this pull request may close these issues.

2 participants