Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 886 Bytes

File metadata and controls

23 lines (17 loc) · 886 Bytes

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 
}

this configuration applies to the 'default' group.

For other groups you need to set them per group.

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

You can also set it per queue.

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

See API Reference/ReceiveMessage.