Shutdown igwn-alert listener properly
closes #424 (closed)
Merge request reports
Activity
requested review from @leo-singer
assigned to @deep.chatterjee
- Automatically resolved by Deep Chatterjee
So here are the two approaches I tried.
- first was to try sending a SIGINT, or SIGTERM signal to the thread in the bootstep stop. My hope was that it will trigger the exceptions here: https://git.ligo.org/computing/igwn-alert/client/-/blob/main/igwn_alert/client.py#L245 and stop the listener. Sadly, it does not work.
- My next idea was to use some attribute like a
shutdown
that will be set in the bootstep stop, and would signal the runloop to terminate. But that would mean overriding the main runloop since such an attribute is not there in the igwn alert client, which is why you see code being adapted from the igwn alert client.
Sadly the changes so far have also not yet fixed the issue of the thread terminating after closing the connection. I'll probably have to talk with Alex about this.
This works using my own branch of adc-streaming and hop-client. This will probably need small changes in both adc-streaming and hop-client. I will open merge requests there, but that will probably take longer to resolve and merge. I suggest moving #424 (closed) to a later milestone.
- Resolved by Cody Messick
I suggest moving #424 (closed) to a later milestone.
This is a regression on main.
added 9 commits
-
9d523648...60fa8768 - 5 commits from branch
emfollow:main
- a120b0e1 - override stock listen with a shutdown [skip-ci]
- a1a8e454 - until_eos is True
- 40206fbc - fix [ci-skip]
- f2b3c410 - testing with dev branches of adc and hop
Toggle commit list-
9d523648...60fa8768 - 5 commits from branch
added 1 commit
- 1ca1754d - override stock listen with a shutdown [skip-ci]
added 1 commit
- b6c0e58f - override stock listen with a running attribute
changed milestone to %Review Readiness Presentation
- Automatically resolved by Deep Chatterjee
- Resolved by Cody Messick
- Resolved by Cody Messick
added 1 commit
- 69a0c19b - override stock listen with a running attribute
added 1 commit
- eb4efd0d - override stock listen with a running attribute
requested review from @cody.messick
mentioned in issue #424 (closed)
mentioned in issue #441 (closed)