Skip to content

Commit 2874f26

Browse files
committed
update readme
1 parent c055f53 commit 2874f26

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.markdown

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,23 @@ ThisIsTheClass:
5757
5858
Only classes that are descended from `ActiveJob::Base` will be wrapped
5959

60+
### Job Classes With Named Args
61+
62+
If you have a job class that uses named arguments you can specify that. `args`
63+
should be a hash nested in the array and you need to add the named_args key.
64+
65+
```yaml
66+
simple_job:
67+
every: "30s"
68+
queue: "simple"
69+
class: "SimpleJob"
70+
args:
71+
- foo: 1
72+
bar: 2
73+
description: "It's a simple job."
74+
named_args: true
75+
```
76+
6077
## Credits
6178

6279
- Written by [@JustinAiken](https://www.github.com/JustinAiken)

0 commit comments

Comments
 (0)