Receive Message options

Pablo Cantero edited this page Feb 5, 2018 · 6 revisions

If you need to set specific SQS receive_message options, such as wait_time_seconds (Long Polling), you can set them in an initializer as follows:

Shoryuken.sqs_client_receive_message_opts = { 
  wait_time_seconds: 20, 
  max_number_of_messages: 1 
}

You can also set it per queue or group:

Shoryuken.sqs_client_receive_message_opts['queue-name'] = { wait_time_seconds: 20 }

Shoryuken.sqs_client_receive_message_opts['group-name'] = { wait_time_seconds: 20 }

See API Reference/ReceiveMessage.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.