-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support keyword arguments in iteration jobs
It's now more common to have jobs that take keyword arguments, like `MyJob.perform_later(foo: "bar")`. But under the current implementation, `build_enumerator` can only take them as a hash argument instead of keyword arguments: ```ruby def build_enumerator(params) foo = params[:foo] # ... end ``` This commit fixes that by allowing keyword arguments to be passed to `build_enumerator` and `each_iteration`.
- Loading branch information
Showing
2 changed files
with
25 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters