Open gap777 opened 2 months ago
This is an Active Job thing: ActiveJob::Base#initialize
should never have its method signature changed. I think you mean to customize the #perform
signature to pass parameters to a job.
@bensheldon 🤦 I created that example for this, trying to reproduce a more complicated example in my codebase. I don't have that obvious mistake in the real thing. ;-)
But still... I'm seeing that error about wrong number of arguments for perform when I add in the labels mixin. Can you try that on your end, with a perform having kwargs and the label mixin present?
@gap777 sorry, I missed the reply. Can you share the code (both your job and the calling code) that you're using?
Hi, Just trying out labels, and it appears that if I have kwargs in the initializer of my jobs, I can't use labels.
My job:
I get this in the error logs: