Skip to content
Snippets Groups Projects

Shutdown igwn-alert listener properly

Merged Deep Chatterjee requested to merge deep.chatterjee/gwcelery:stop-listener-properly into main
All threads resolved!

closes #424 (closed)

Edited by Deep Chatterjee

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Deep Chatterjee resolved all threads

    resolved all threads

  • added 1 commit

    Compare with previous version

  • Looks like this is adapting some code from inside igwn-alert? This should probably go upstream.

  • 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.

  • added 1 commit

    Compare with previous version

  • added 1 commit

    • 9d523648 - testing with dev branches of adc and hop

    Compare with previous version

  • 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.

  • Deep Chatterjee added 9 commits

    added 9 commits

    Compare with previous version

  • Deep Chatterjee marked this merge request as ready

    marked this merge request as ready

  • Deep Chatterjee changed title from Draft: override stock listen with a shutdown [skip-ci] to Shutdown igwn-alert listener properly

    changed title from Draft: override stock listen with a shutdown [skip-ci] to Shutdown igwn-alert listener properly

  • Roberto DePietri approved this merge request

    approved this merge request

  • added 1 commit

    • 1ca1754d - override stock listen with a shutdown [skip-ci]

    Compare with previous version

  • added 1 commit

    • b6c0e58f - override stock listen with a running attribute

    Compare with previous version

  • Cody Messick
  • Cody Messick
  • Cody Messick
  • lgtm other than some minor changes I requested (mainly comment related). I'll smash that approve button once those are resolved.

  • Deep Chatterjee added 2 commits

    added 2 commits

    • 17b1f3eb - 1 commit from branch emfollow:main
    • d94ac975 - override stock listen with a running attribute

    Compare with previous version

  • added 1 commit

    • 69a0c19b - override stock listen with a running attribute

    Compare with previous version

  • added 1 commit

    • eb4efd0d - override stock listen with a running attribute

    Compare with previous version

  • requested review from @cody.messick

  • Cody Messick resolved all threads

    resolved all threads

  • Cody Messick approved this merge request

    approved this merge request

  • mentioned in issue #424 (closed)

  • mentioned in issue #441 (closed)

  • Please register or sign in to reply
    Loading