Skip to content

Shoryuken Inline adapter

Pablo Cantero edited this page Dec 24, 2017 · 3 revisions

Shoryuken also supports inline jobs, which can be useful for testing and development environments. When using the inline adapter perform_async and perform_in execute the workers right away without going to SQS.

Note: Shoryuken Inline Adapter is only available in Shoryuken workers. It isn't supported in Active Job jobs. For Active Job refer to Active Job Inline adapter .

For enabling inline adapter you need to change the worker_executor as follows:

Shoryuken.worker_executor = Shoryuken::Worker::InlineExecutor

For returning to the default one (the one that goes to SQS):

Shoryuken.worker_executor = Shoryuken::Worker::DefaultExecutor

Clone this wiki locally