Closed
Description
Describe the bug
Hi~ I am glad to #190 is fixed ,
But after I try to delete the updated job,
it will not be able to do other jobs.
This is my code
s := gocron.NewScheduler(time.Local)
s.WaitForScheduleAll()
gocronJob , _ := s.CronWithSeconds("*/3 * * * * *").SingletonMode().StartAt(time.Now().Local().Add(time.Second *3)).Do(job1.task, "123")
s.StartAsync()
x, _ := s.Job(gocronJob).CronWithSeconds("*/8 * * * * *").Update()
time.Sleep(time.Second * 10)
s.RemoveByReference(x)
s.CronWithSeconds("*/11 * * * * *").SingletonMode().Do(job1.task, "777")
To Reproduce
Steps to reproduce the behavior:
- Create a job1
- Update the job1
- Remove the job1
- Create a job2