project8 / dripline

Slow controls for medium scale physics experiments based on AMQP centralized messaging
http://www.project8.org/dripline
1 stars 0 forks source link

send_request optional exception #105

Closed laroque closed 9 years ago

laroque commented 9 years ago

It would probably be useful to modify send_request() such that there is an optional kwarg except_on_bad_retcode. This would check the return code of the reply message received and, if non-zero, raise an exception. The advantage to this configuration being that you don't need to check the return code in every case of reply=service.send_request(), but can just tell it to check as part of that process.

It should default to false, the behavior needed within long running services to ensure that momentary problems (maybe something is being power cycled) don't bring down the rest of the system.

laroque commented 9 years ago

implemented in 2319eee