[ARVADOS] updated: de3bb6cb95b9699ff6eea6ac836c4598cec331a5

git at public.curoverse.com git at public.curoverse.com
Thu Oct 23 16:22:55 EDT 2014


Summary of changes:
 services/api/lib/eventbus.rb | 3 +++
 1 file changed, 3 insertions(+)

       via  de3bb6cb95b9699ff6eea6ac836c4598cec331a5 (commit)
      from  fdaaff3165642f03d46a628050d6dfb04cd37565 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit de3bb6cb95b9699ff6eea6ac836c4598cec331a5
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Thu Oct 23 16:22:48 2014 -0400

    4295: Abort on NoMemoryError

diff --git a/services/api/lib/eventbus.rb b/services/api/lib/eventbus.rb
index a0c0b27..848279f 100644
--- a/services/api/lib/eventbus.rb
+++ b/services/api/lib/eventbus.rb
@@ -248,6 +248,9 @@ class EventBus
                   @channel.push payload.to_i
                 end
               end
+            rescue NoMemoryError
+              EventMachine::stop_event_loop
+              abort "Out of memory"
             ensure
               # Don't want the connection to still be listening once we return
               # it to the pool - could result in weird behavior for the next

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list