-
-
Notifications
You must be signed in to change notification settings - Fork 403
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
Jobs weird on reload? #831
Comments
Just a stop-gap to make #831 not a regression so 6.0 can get out the door. It's not the right solution, but it's slightly better than what was there before. Only reloading a module with a job actually in it will kill all the jobs now, rather than any module. So, progress?
Tweaked so that this is no longer any worse than what previous versions had, so this no longer blocks 6.0 from being released. It's still not right, though, so I'm leaving it open. |
Might be a complicated fix, but what if we saved some sort of reference to every job a module sets up so that when the module is unloaded/reloaded we can kill it? add some function to the JobScheduler that takes a Job object (or the ID of said object, or some other unique indicator) and removes all instances of said job from the queue? |
Just a stop-gap to make sopel-irc#831 not a regression so 6.0 can get out the door. It's not the right solution, but it's slightly better than what was there before. Only reloading a module with a job actually in it will kill all the jobs now, rather than any module. So, progress?
Possibly related: #1053, which does away with the |
Will be fixed in #1479. |
It |
Nope, 6.6.x still clears the whole queue: Lines 219 to 222 in 684c0b4
Nevertheless, it's fixed on master now with #1479 merged, so… yay. |
5.x reload uses
bind_commands
, which clears the queue. This (I think) cancels all the jobs, meaning all scheduled stuff probably breaks when any module is reloaded. The 6.0 branch doesn't do anything with jobs, so old versions of jobs keep running. I haven't verified this behavior, but it's probably the case.The text was updated successfully, but these errors were encountered: