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

task runs once despite later startTime #8

Closed
sdmcallister opened this issue Jul 7, 2021 · 2 comments
Closed

task runs once despite later startTime #8

sdmcallister opened this issue Jul 7, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@sdmcallister
Copy link

Nice Library.

Running the code below (with startTime set to a later date) will cause tick a to run once and then wait until the startTime. I would expect the first task to completely delay until the startTime.

import schedules, times, asyncdispatch

schedules:
  every(seconds=10, id="tick", async=true, startTime=initDateTime(7, mJul, 2021, 14, 28, 00, 00, local())):
    echo("tick a", now())

  every(seconds=10, id="atick", async=true):
    echo("tick b", now())
    await sleepAsync(3000)
@soasme soasme added the bug Something isn't working label Jul 8, 2021
@soasme
Copy link
Owner

soasme commented Jul 8, 2021

Thanks for reporting the issue. The bug fix is now included in release v0.1.2. Please upgrade the library and see if it works.

@sdmcallister
Copy link
Author

Seems to be working now. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants