question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option for automatic graceful shutdown

See original GitHub issue

Would it be possible to publicly expose the self._invocations dictionary (https://github.com/crossbario/autobahn-python/blob/2e94d12c176eb34e74c788ceb4ada0b7bef916f6/autobahn/wamp/protocol.py#L356) in the WAMP protocol? For background, we want to be able to wait on all pending incoming requests to complete when we are shutting down a WAMP session. Alternatively, if there is a way to guarantee that the incoming requests are completed before disconnecting, that would work too.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
asgoelcommented, Aug 22, 2019

@oberstet wouldn’t we want to do 2 before 1?

0reactions
oberstetcommented, Aug 21, 2019

Here is a possible design I think would cover the use case.

Add a new option to leave:

def leave(self, reason=None, message=None, graceful_leave=0):

If graceful_leave>0, then:

  1. wait at most graceful_leave seconds for any outstanding calls, invocations and acknowledged publications to finish
  2. unsubscribe and unregister any subscriptions and registrations
  3. send wamp.message.Goodbye

If graceful_leave==0, then send wamp.message.Goodbye immediately

Note: according to the WAMP protocol, a peer must not send anything after sending a GOODBYE message, and must respond by replying GOODBYE after receiving such message (it must not send anything else)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Automatic graceful shutdown on multiple servers
I'm trying to get automatic graceful shutdown set up for the servers connected to my Smart-UPS using PowerChute. As far as I can...
Read more >
Use Your UPS to Gracefully Shut Down Your PC During ...
Here's how your APC UPS can shut down your PC gracefully. ... Launch PowerChute and you can begin configuring your power backup options....
Read more >
Integrated Dell Remote Access Controller 8 (iDRAC8) Version ...
To perform graceful shutdown, in iDRAC Web interface, go to one of the ... From the Power Control drop-down menu, select Graceful Shutdown...
Read more >
Graceful shutdown of services | Citrix ADC 13.1
No graceful shutdown. Service is shut down immediately after the disable option is chosen or the disable command is issued. (The default wait ......
Read more >
bios - UPS graceful shutdown - how to automatically restart ...
If I disable the graceful shutdown then there is a setting I can set in the server's BIOS so that it restarts automatically...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found