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

[BUG] - StartAt Task doesn't run since 0.5.0 #102

Closed
dlaweb opened this issue Jan 14, 2021 · 2 comments
Closed

[BUG] - StartAt Task doesn't run since 0.5.0 #102

dlaweb opened this issue Jan 14, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@dlaweb
Copy link

dlaweb commented Jan 14, 2021

Describe the bug

Something is broken since the last release 0.5.0; tasks aren't executed anymore in that specific case :

To Reproduce

package main

import(
	"fmt"
	"time"
	"github.com/go-co-op/gocron"
)

func task() {
	fmt.Println("Im a dummy task")
}
func main() {
	// defines a new scheduler that schedules and runs jobs
	scheduler := gocron.NewScheduler(time.UTC)

	j, _ := scheduler.Every(1).StartAt(time.Now().Add(5*time.Second)).Do(task)
	j.LimitRunsTo(1)
	scheduler.StartAsync()
	
	time.Sleep(15*time.Second)

}

Version

0.5.0

@dlaweb dlaweb added the bug Something isn't working label Jan 14, 2021
@dlaweb dlaweb changed the title [BUG] - Task won't run since 0.5.0 [BUG] - StartAt Task don't run since 0.5.0 Jan 14, 2021
@dlaweb dlaweb changed the title [BUG] - StartAt Task don't run since 0.5.0 [BUG] - StartAt Task doesn't run since 0.5.0 Jan 14, 2021
@dlaweb dlaweb closed this as completed Jan 14, 2021
@dlaweb dlaweb reopened this Jan 14, 2021
@JohnRoesler
Copy link
Contributor

duplicate #98

@JohnRoesler
Copy link
Contributor

Check out v0.5.1

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