Comments (6)
It takes an Array of Arrays, one Array for each job's args: [[1], [2], [3]]
from sidekiq.
It takes an Array of Arrays, one Array for each job's args:
[[1], [2], [3]]
Yes, thanks, that is what I am passing:
the job's args is [1, 2, 3]
And I am passing an array of size one: [[1, 2, 3]]
from sidekiq.
Then I think you are missing an Array?
[[[1,2,3]]]
from sidekiq.
Then I think you are missing an Array?
[[[1,2,3]]]
Thanks - I guess that could be a workaround as well - but basically my normal usecase is a whole bunch of ids:
args = [[1, 2, 3...], [4, 5, 6...], [7, 8, 9 ...]]
perform_bulk(args)
but when we are testing with a smaller amount of IDs, we'd have to double nest the array?
[[[1,2,3]]]
from sidekiq.
I think you're still missing an Array because your job only takes one argument: an array. You want this:
[ # the set of jobs
[ # the first job
[1, 2, 3...] # the first argument
],
[[4, 5, 6...]],
[[7, 8, 9 ...]],
]
from sidekiq.
You are right, thank you. Sorry for the back and forth, I'm not sure what I was testing earlier with my larger set of args but it wasn't correct.
Solved by adding a zip
call:
previously:
my_id_args = my_ids.in_groups_of(BATCH_SIZE, false)
MyWorker.perform_bulk(my_id_args)
now:
my_ids.in_groups_of(BATCH_SIZE, false).zip
MyWorker.perform_bulk(my_id_args)
from sidekiq.
Related Issues (20)
- Bucket limiter can be timezone aware with day interval HOT 1
- The incompatible args warning not generated for ActiveSupport::HashWithIndifferentAccess HOT 2
- [suggestion] smarter default rate limit backoff strategy HOT 5
- [Feature request] Ability to customize `(class, args, queue)` list for unique jobs HOT 6
- Improve the `CurrentAttributes` module HOT 4
- Payload field inside work from Sidekiq::WorkSet is not hash anymore HOT 1
- [ENT] Rate Limiting Bucket w/ Points HOT 3
- Sidekiq UI not working HOT 4
- Either declare or remove dependency on base64 to avoid a Ruby 3.3 warning HOT 1
- Jobs disappears for 10 seconds when Worker is picking it up HOT 3
- Feature Request: Callbacks/Middlewares for Handling Jobs at Risk of Loss in reliable_push HOT 4
- Sidekiq 7 API Change - Sidekiq[:average_scheduled_poll_interval] HOT 4
- sidekiq-ent limiter timeouts from redis-client revisited HOT 7
- transactional_push! prevents jobs from being added to a batch HOT 19
- Sidekiq paused the default queue for no reason after an upgrade 6.x -> 7.x HOT 4
- We randomly see a RedisTimeoutError HOT 19
- [Discussion] Handling long-running jobs that are killed by deployments HOT 4
- Sidekiq HOT 1
- Is there anyway to find the total memory usage Sidekiq of Rails Application. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sidekiq.