Closed scottrobertson closed 4 years ago
Ok, i have added some logging to this.
If i dump the job JSON, there is:
"custom" => {"bid" => "b-cFUpJhAhg49s1w"}
However, within the job bid
is nil.
Will do some more debugging.
Ok, added some more logging in the batch
method in the lib.
puts self.instance_variables
=> @jid
Got it. Will send PR.
See faktory/middleware/batch and faktory/job#batch
@mperham PR already sent. bid was not being set on the job object at all.
@mperham PR closed, let's continue the discussion here. From what i can see, that middlewhere configure_worker
is just not being called at all.
require 'faktory' was called before Faktory::CLI was defined so Faktory.worker? returned false.
Thanks @mperham
Hey
Having an issue with batches on a few specific workers.
We have a batch, which enqueues jobs, and then those jobs can add to the batch. This has been working totally fine, but for some reason occasionally this happens.
That line is
batch.jobs do
However, as you can see, there is a bid set. (it's in custom, is that right? We don't set that manually).