#305 If rhmsg fails with a RuntimeError, then retry.
Merged 11 months ago by ralph. Opened 11 months ago by ralph.

file modified

@@ -29,6 +29,7 @@ 


  from freshmaker import log, conf

  from freshmaker.events import BaseEvent

+ from freshmaker.utils import retry



  def publish(topic, msg):

@@ -53,6 +54,7 @@ 

      return fedmsg.publish(topic, msg=msg, modname=config['SERVICE'])



+ @retry(wait_on=(RuntimeError,), logger=log)

  def _rhmsg_publish(topic, msg):

      """Send message to Unified Message Bus


I saw this in the logs during the last possible part of an event, causing the
whole event to fail. This will at least let us ride out 2-minute UMB blips.

See FACTORY-2905 for the Traceback that triggered this.

Pull-Request has been merged by ralph

11 months ago