I have middleware to set custom attributes when pushing a job, and then use them in the worker.
When a batch callback is triggered, the worker middleware is invoked, but it doesn't look like the client middleware is (custom attributes are missing). In this case, the job is triggered by the batch, not by client code.
Is this a bug/limitation, or am I just missing how to setup the middleware for batch callbacks, or is there something to do when creating the batch?
Thanks