Replies: 3 comments 1 reply
-
Hi! Check out this issue for details on what you can try: #216 This is not an official feature at the moment, but you can take this approach. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Related to #141 |
Beta Was this translation helpful? Give feedback.
0 replies
-
@jamesmh I thought about another option to stop long running task. I can schedule it to run once and to setup the invocable with cancellation token. Once i set the cancellation token , the invokable will exit and the task should be stopped. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, i want to integrate Coravel nuget in my projet and i want to understand how i stop scheduler.
This is how i schedule new task :
provider.UseScheduler(scheduler =>
{
scheduler.Schedule(
() => Console.WriteLine("Every minute during the week.")
)
.EveryMinute()
.Weekday();
});
But how i can stop it?
I read the documentation from here but i did not find any reference how i stop it.
Another question that i have what is the best way to schedule tasks when i don't know from the application startup what i need to schedule.
My scenario is as follows first of all the application needs to query some service for the information and after that it will know to schedule tasks based on this information.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions