Class: Cloudenvoy::SubscriberController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Cloudenvoy::SubscriberController
- Defined in:
- app/controllers/cloudenvoy/subscriber_controller.rb
Overview
Handle execution of Cloudenvoy subscribers
Instance Method Summary collapse
-
#receive ⇒ Object
POST /cloudenvoy/receive.
Instance Method Details
#receive ⇒ Object
POST /cloudenvoy/receive
Process a Pub/Sub message using a Cloudenvoy subscriber.
21 22 23 24 25 26 27 28 29 30 31 |
# File 'app/controllers/cloudenvoy/subscriber_controller.rb', line 21 def receive # Process msg_descriptor Subscriber.execute_from_descriptor(msg_descriptor) head :no_content rescue InvalidSubscriberError # 404: Message delivery will be retried head :not_found rescue StandardError # 422: Message delivery will be retried head :unprocessable_entity end |