Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBlue79 committed Sep 18, 2024
1 parent c6833b4 commit 7a9e6c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ end

Inside `OrchestrationJob`, it's possible to set options that will be used for all the child jobs inside the workflow. Viable options are anything that would be called to the Sidekiq's `#set` call from the `Setter` API.

Redefine the `child_job_options` class method on your OrchestrationJob to provide the options to the child jobs. Note that this method is only called at the start of orchestration, so you only have access to the initial `args` passed to the `OrchestratorJob` available to use. `child_job_options` must return a hash.
Redefine the `child_job_options` method on your OrchestrationJob to provide the options to the child jobs. Note that this method is only called at the start of orchestration, so you only have access to the initial `args` passed to the `OrchestratorJob` available to use. `child_job_options` must return a hash.

```ruby
class SomeOrchestrationJob
include Simplekiq::OrchestrationJob
def self.child_job_options(*args)
def child_job_options(*args)
if args[0] = "good"
{ "queue" => "the-good-queue" }
else
Expand Down

0 comments on commit 7a9e6c6

Please sign in to comment.