Open edwardotis opened 7 years ago
I just verified that names vars are actually working (i think this has been fixed in #28) But as you said: you need to create your own job for that.
Actually i don't really see a use-case for this, as you can already inject services into jobs.
Jesque supports Jobs with named arguments, 'vars', in addition to 'args'. @see Job.java
The grails JesqueService doesn't support this explicitly, but I can make my own Job instance to properly pass the named vars.
The problem is in the grails GrailsWorkerImpl execute method. It is only looks for the Job.args, not Job.vars.
Whereas the Java version is more convoluted, but when they do execute, it handles both args and vars in JesqueUtils.java, ReflectionUtils.java