coravel
coravel copied to clipboard
[Docs] RunOnceAtStart docs seem to be incorrect
Hi,
I'm not sure what issue type to open for this, but I may have found an issue with the documentation found here.
Describe the bug The example shows:
scheduler.Schedule<CacheSomeStuff>()
.RunOnceAtStart()
.Hourly()
.Weekday();
When I try to do the same, it doesn't seem like the method is available on IScheduleInterval
:
Affected Coravel Feature Scheduling, specifically the run once at start functionality.
Expected behaviour
It seems like RunOnceAtStart
is only available as a method on IScheduledEventConfiguration
and the example should therefore be:
scheduler.Schedule<CacheSomeStuff>()
.Hourly()
.Weekday()
.RunOnceAtStart();
Side note
Thanks a lot for all your hard work. This package has made running scheduled jobs a breeze!
Thanks Eric! Good find 😉
I can confirm that the docs are still wrong.
But yeah, nice job on a great library! Thanks for creating this!
This should be fixed now (or whenever the docs build ina few min lol)
hi, the RunOnceAtStart() method is present. but no start Job-4.0.5 version.Need to upgrade to 4.1.0 version?
Don't remember... I think there was an issue in a past version. Try 4.1.0 and see if it fixes it 😃