-
Notifications
You must be signed in to change notification settings - Fork 19
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
Garbage collector for active calls #912
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we know if the broker understands that a call got cancelled with respect to the channel limit? ie, will it start a new call if any one is queued?
I'm also thinking about the callbacks - will they trigger? My fear is that we're silently just marking calls as failed, without that affecting the behaviour of the system.
@matiasgarciaisaia, you may be right! Thanks!!! This is what we do in the API. Maybe we need to include
No clue about how to check this. But what I think is that we're reproducing how the calls are being canceled manually, so it should work, right? |
Cancelling a queued_call just means: updating its call_log state to "cancelled"
This reverts commit a88b737.
Cancelling a queued_call just means: updating its call_log state to "cancelled"
@matiasgarciaisaia, please let me know how you see these changes now. I know this may not be the ideal solution, but please let me know if you think it's good enough. Thanks!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change the timer:send_interval
thing and merge 👍
We can leave the changes in the GC start time for later.
I think we finished with this, @matiasgarciaisaia. Waiting for the CI to finish and your approval to merge! Thanks a lot! |
8e1ffa8
to
7260d80
Compare
Finally, @matiasgarciaisaia, I think we're done. This is the line I added to avoid the CI crashing 🙂 |
@matiasgarciaisaia, I've just merged this, but could I ask for your approval on this PR? 🙏 Thanks!! |
I've reviewed the PR on Friday but forgot to comment. All is good 👍 |
When a call remains active for too long Verboice considers there was an error and cancels it.
This GC runs every X minutes and cancels every active call for more than N minutes.
The value X defaults to 10 minutes and is configurable via the ENV variable
minutes_between_active_calls_gc_runs
.The value N defaults to 120 minutes and is configurable via the ENV variable
minutes_for_cancelling_active_calls
.For #900
Bonus track: buggy code deletion.