1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
Commit graph

10 commits

Author SHA1 Message Date
Mike Perham
5776c7ae87 standard:fix the testsuite codebase, no functional changes 2022-03-03 12:51:10 -08:00
Mike Perham
091a77f4b0 Add perform_sync alias, fixes #5208 2022-02-22 08:08:03 -08:00
Mike Perham
41493f2623 Stringify perform_bulk's option hash, fixes #5081 2021-12-07 14:02:59 -08:00
Mike Perham
283d2313a2 Merge branch 'hasan-ally-feat_sidekiq_perform_inline' 2021-11-16 10:19:50 -08:00
Kelly Sutton
e96ab6939b
Make .perform_bulk immediately evaluate lazy enumerators. (#5060)
* Create failing tests to capture the cases we care about

Co-authored-by: Noa Elad <noa.elad@zenpayroll.com>

* Call .force on args if they are a lazy enumerator to evaluate them immediately

Co-authored-by: Noa Elad <noa.elad@zenpayroll.com>

* Change implementation of `.perform_bulk` to lazily pull values from a lazy enumerator.

This prevents us from loading the entire contents of a lazy enumerator into memory while providing the
"unsurprising" behavior of enqueueing jobs when `.perform_bulk` is called.

Note: We'll still load all JIDs into memory.

Co-authored-by: Noa Elad <noa.elad@zenpayroll.com>
Co-authored-by: Eda Zhou <eda.zhou@gusto.com>

Co-authored-by: Noa Elad <noa.elad@zenpayroll.com>
Co-authored-by: Eda Zhou <eda.zhou@gusto.com>
2021-11-16 08:54:35 -08:00
Hasan Kumar
2898a715d7
feat: adds support for .perform_inline which processes the job inline
after passing through available client and server middlewares
2021-11-15 15:57:56 +05:30
Kelly Sutton
4a0432622f
Implement Sidekiq::Worker.perform_bulk (#5042)
* Sketch out some failing tests to capture the behavior

Co-authored-by: jeffcarbs <jeff.carbonella@gmail.com>

* Implement Sidekiq::Client.perform_bulk

Co-authored-by: jeffcarbs <jeff.carbonella@gmail.com>

* Allow .perform_bulk to operate on different batch sizes

Co-authored-by: jeffcarbs <jeff.carbonella@gmail.com>

* Write a failing test to capture the Sidekiq::Worker::Setter.perform_bulk behavior

Co-authored-by: jeffcarbs <jeff.carbonella@gmail.com>

* Implement Sidekiq::Worker::Setter.perform_bulk

Co-authored-by: jeffcarbs <jeff.carbonella@gmail.com>

* Write a small comment for to document the method

Co-authored-by: jeffcarbs <jeff.carbonella@gmail.com>

* Add a Changes.md entry

Co-authored-by: jeffcarbs <jeff.carbonella@gmail.com>
2021-11-02 09:54:44 -07:00
Mike Perham
3b233c558a Add support for AJ's :wait option 2021-10-05 14:04:04 -07:00
Mike Perham
2b2390d579
Support ActiveJob’s wait_until (#5003)
* Implement support for `set(wait_until: <interval>)`

* Implement `queue_as`, docs

* Rollback implementing `perform_later`, it's a footgun

* changes
2021-09-28 11:24:17 -07:00
Mike Perham
33aedf62de Allow Sidekiq::Worker#set to be chained 2019-03-04 11:16:58 -08:00