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] - A long running job can not be cancelled when run s.StopJobs() #818

Closed
27149chen opened this issue Jan 23, 2025 · 0 comments · Fixed by #819
Closed

[BUG] - A long running job can not be cancelled when run s.StopJobs() #818

27149chen opened this issue Jan 23, 2025 · 0 comments · Fixed by #819
Labels
bug Something isn't working

Comments

@27149chen
Copy link
Contributor

27149chen commented Jan 23, 2025

Describe the bug

A long running job can not be cancelled when run s.StopJobs(), and always return "timed out waiting for jobs to finish"

To Reproduce

Steps to reproduce the behavior:

  1. Create a Scheduler and add a long running job and set WithStartImmediately
  2. start the scheduler
  3. wait for a while before the job is completed, run s.StopJobs()
  4. timeout error returns

Version

v2.14.2

Expected behavior

if the job has a ctx field, Scheduler should cancel it when running StopJobs() instead of waiting for it

Additional context

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

Successfully merging a pull request may close this issue.

1 participant