-
Notifications
You must be signed in to change notification settings - Fork 10
handling shutdown and termination signallingin [all signalling modes] #12
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
handling shutdown and termination signallingin [all signalling modes] #12
Conversation
License Check Results🚀 The license check job ran with the Bazel command: bazel run //:license-checkStatus: Click to expand output |
|
The created documentation from the pull request is available at: docu-html |
|
Hi @ShoroukRamzy, thanks for the PR! And make sure everything works. You'll also need an additional PR for score-crates to add ctrlc crate there. |
9f85924 to
bc86d9f
Compare
|
I prepared a PR to revert our implementation #13 I would advise against rebasing on top of main branch; we better revert the original PR first and then rebase to avoid conflicts and/or previous implementation leftovers. |
Hi @artemsheinacn, Thank you so much for your help. I fully agree with you. Unfortunately I did not see this comment before rebase but I will revert my changes and wait for your revert to be able to rebase cleanly. |
|
@ShoroukRamzy by next Sunday you mean the 9th of November, right? |
Yes, exactly! |
|
I'll be on a vacation next week, but @armin-acn will step up to help you merge your changes, have a nice holiday then! |
Thank you for your support. Have a nice vacation in advance! |
|
Hi @ShoroukRamzy , Do you want me to apply our revert immediately or do you first want to work on your PR (reverting our PR locally)? |
Hi @armin-acn, I observe that you have introduced two additional commits; I kindly request that you revert before I re-open my pull request. |
|
Hi @ShoroukRamzy, I have reverted our commit regarding FEO termination. |
Hi @armin-acn, Thank you for your help. I encountered a build issue with Ctrlc after rebasing, and I will re-open my PR once it's resolved. |
|
Hi @armin-acn, I have an issue building after rebasing with crtlc it was building correctly before rebasing, Could you please inform me if there are any limitations regarding the use of external crates, or suggest potential causes for this issue? Thanks! |
|
Hi Shorouk, sorry I also cannot reopen the pull request. I think it is because you rebased your branch. It seems you have to open a new one. |
Hi @armin-acn, I opened this one #15. Thanks! |
Hi @armin-acn, Could this be the source of the Ctrlc build issue? |
|
Yes, I think it is. See my comment in your new PR. |

This PR covers this issue created here #7
This change implements a two-phase graceful shutdown sequence for the FEO framework, as specified in
feo/Design/shutdown_sequence.md. The primary agent now handles OS termination signals (e.g., SIGINT from Ctrl-C) to initiate a clean exit.The shutdown process is handled for all supported signalling mechanisms:
signalling_direct_mpscsignalling_direct_tcpsignalling_direct_unixsignalling_relayed_tcpsignalling_relayed_unixPhase 1: Activity Shutdown
The scheduler sends a
Shutdownsignal to all running activities and waits for an acknowledgement before proceeding.Phase 2: Agent Termination
The scheduler broadcasts a
Terminatesignal to all connected agents (workers and recorders if any), waits for aTerminateAck, and then exits.Note: To verify it you can test the minia-adas example and terminate primary using Ctrl-C signal