-
-
Notifications
You must be signed in to change notification settings - Fork 289
Receive Message options
Pablo Cantero edited this page Feb 5, 2018
·
7 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: 30,
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 }