class Aws::Rails::SqsActiveJob::Executor
def execute(message)
def execute(message) post_task(message) rescue Concurrent::RejectedExecutionError # no capacity, wait for a task to complete @task_complete.reset @task_complete.wait retry end
def execute(message) post_task(message) rescue Concurrent::RejectedExecutionError # no capacity, wait for a task to complete @task_complete.reset @task_complete.wait retry end