-
Notifications
You must be signed in to change notification settings - Fork 290
Shoryuken Inline adapter
Ben Wiseley edited this page Aug 15, 2021
·
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::InlineExecutorFor returning to the default one (the one that goes to SQS):
Shoryuken.worker_executor = Shoryuken::Worker::DefaultExecutorTo run all jobs inline in test just add this to config/environments/test.rb Shoryuken.worker_executor = Shoryuken::Worker::InlineExecutor