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

Scheduler running is not correct run in UTC/Local mode #33

Closed
rts-gordon opened this issue Dec 31, 2021 · 2 comments
Closed

Scheduler running is not correct run in UTC/Local mode #33

rts-gordon opened this issue Dec 31, 2021 · 2 comments

Comments

@rts-gordon
Copy link

rts-gordon commented Dec 31, 2021

Hi @BinChengZhao
There are some errors in UTC mode, would you like to have a look at this, thank you.

Describe the bug
Scheduler running is not correct in UTC mode

To Reproduce
define a task scheduler like this, run in UTC mode:

        let task_builder = TaskBuilder::default()
            .set_frequency_repeated_by_cron_str(&dotenv::var("0 15 06 * * * *“)
            .set_schedule_iterator_time_zone(ScheduleIteratorTimeZone::Utc)
            .set_task_id(1)
            .spawn(body)?;

The task will be run one hour in advance(UTC: 05:15), also run in Local mode.

Environment:
Ubuntu Linux 20,
delay_timer: main branch and feature/for_le_rust_156 branch.

@rts-gordon rts-gordon changed the title Scheduler is not correct run in UTC mode Scheduler running is not correct run in UTC mode Dec 31, 2021
@rts-gordon rts-gordon changed the title Scheduler running is not correct run in UTC mode Scheduler running is not correct run in UTC/Local mode Dec 31, 2021
@BinChengZhao
Copy link
Owner

Hi @BinChengZhao There are some errors in UTC mode, would you like to have a look at this, thank you.

Describe the bug Scheduler running is not correct in UTC mode

To Reproduce define a task scheduler like this, run in UTC mode:

        let task_builder = TaskBuilder::default()
            .set_frequency_repeated_by_cron_str(&dotenv::var("0 15 06 * * * *“)
            .set_schedule_iterator_time_zone(ScheduleIteratorTimeZone::Utc)
            .set_task_id(1)
            .spawn(body)?;

The task will be run one hour in advance(UTC: 05:15), also run in Local mode.

Environment: Ubuntu Linux 20, delay_timer: main branch and feature/for_le_rust_156 branch.

Temporarily, you can use the feature/for_le_rust_156 branch to lock the commit-id to avoid being plagued by bugs.

The latest delay-timer v0.11.0 will be released as well, with new features and fixes on the way.

@rts-gordon
Copy link
Author

Thank you @BinChengZhao

This issue was closed.
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