You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to reproduce the behavior:
When *Scheduler.run(), scheduler is executing the job and in another go routine, tries to access the JobInfo using Job.RunCount(), Job.NextRun(), Job.LastRun(), Job.RunCount() is not being protected by mutex and leads to data race.
Version
github.com/go-co-op/gocron@v1.16.1
Expected behavior
There shouldn't be data race when *Scheduler.run()
Additional context
The text was updated successfully, but these errors were encountered:
Describe the bug
To Reproduce
Steps to reproduce the behavior:
When
*Scheduler.run()
, scheduler is executing the job and in another go routine, tries to access theJobInfo
usingJob.RunCount()
,Job.NextRun()
,Job.LastRun()
,Job.RunCount()
is not being protected by mutex and leads to data race.Version
github.com/go-co-op/gocron@v1.16.1
Expected behavior
There shouldn't be data race when
*Scheduler.run()
Additional context
The text was updated successfully, but these errors were encountered: