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

fix: can't save jobs to db when close because of mismatch context Done channels in bridge_core.NewWithContext() #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lyn1505
Copy link

@lyn1505 lyn1505 commented Aug 19, 2024

A bug in bridge_core.NewWithContext() will cause controller.Close() to never wrap up job pool (this line never finished):

  • The context used in controller.cancelFunc (code) is the child of the context passed to Pool (code)
  • So, when controller.Close() is called, although controller.cancelFunc() is called (code), context of Pool isn't cancelled --> jobs never get wrapped up and saved

There are the same context mismatches in other places in bridge_core.NewWithContext(), which I don't know what effects it has.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant