mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
ch-ch-ch-changes
This commit is contained in:
parent
0f8c914ddb
commit
3f6940b606
1 changed files with 14 additions and 0 deletions
14
Changes.md
14
Changes.md
|
@ -4,7 +4,21 @@ HEAD
|
|||
-----------
|
||||
|
||||
- Tag quiet processes in the Web UI [#2757, jcarlson]
|
||||
- Add native support for ActiveJob's `set(options)` method allowing
|
||||
you to override worker options dynamically. This should make it
|
||||
even easier to switch between ActiveJob and Sidekiq's native APIs [#2780]
|
||||
```ruby
|
||||
class MyWorker
|
||||
include Sidekiq::Worker
|
||||
sidekiq_options queue: 'default', retry: true
|
||||
|
||||
def perform(*args)
|
||||
# do something
|
||||
end
|
||||
end
|
||||
|
||||
MyWorker.set(queue: 'high', retry: false).perform_async(1)
|
||||
```
|
||||
|
||||
4.0.2
|
||||
-----------
|
||||
|
|
Loading…
Add table
Reference in a new issue