Closed Tylerian closed 10 months ago
Needs tests.
Needs tests.
Sorry for that. Just wanted to follow the conventions of the project. Is there any existing file Batch specific tests are placed? I couldn't find any. If not, I'll create a new batch_test.go
file following Golang conventions and place them there.
Sorry for the lack of detail. I know that faktory_worker_ruby
has some batch tests, as does faktory_worker_go
. You might need to create two PRs, one to add the APIs to the client package (this PR) and the other to add a test to fwg. It's not really possible to test Enterprise functionality in this repo.
If you know Ruby and use FWR, you're welcome to add the same functionality and test there since the Ruby client and tests are in the same repo.
Context
Faktory 1.6.0 introduced the
BULKB
command which allows jobs to be pushed in bulk, and the Faktory Client introduced thePushBulk
method in order to add support for it.Problem
Although the feature should also work with Batches out of the box, currently the Faktory Client's
Batch
API doesn't implement thePushBulk
functionality.Solution
This MR adds the
PushBulk
method to Faktory's Client Batch API in order to allow Jobs to be pushed in bulk within Batches.