Timeout On Publisher Call
I have a thrift service which makes a call to another service. If that service stops listening for some reason, but the AMQP software still works, I was experimenting with inlineCallbacks and yield, on basically making the timeout work the way I want.
In summary, I want a publisher service that never gets a result from a call to generate an error or something so I don't just wait on yield (which would happen indefinitely) However, I looked at the timeout code you have, and I went into the txamqp contrib thrift source and added a timeout it would fail to keep executing because it will generate an "Empty" error and will most likely kill this "queue.
What I have right now is basically I just get rid of the inlineCallbacks and just issue a addCallback and addErrback, to keep things from being unable to execute. I also experimented with a callLater(15, issueErrbackOnD
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- txAMQP Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Dan Di Spaltro
- Solved:
- Last query:
- Last reply: