code: def process_actions(actions):
      
      queue = current_app.config['INDEXER_MQ_QUEUE']
      with establish_connection() as c:
          q = queue(c)
          for action in actions:
              q = action(q)
docs: Process queue actions.