Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

QueueResqueJobHandler enqueues jobs with optional arguments in perform with 1 argument #94

Open
greggroth opened this issue Dec 18, 2019 · 0 comments

Comments

@greggroth
Copy link
Contributor

Given a perform method like

self.perform(payload, routing_key = nil, _properties = nil)

QueueResqueJobHandler will enqueue it with only the payload since the arity of this method is -2 and QueueResqueJobHandler checks if the arity is exactly 3 (e.g. 3 required arguments).

https://github.com/stitchfix/pwwka/blob/master/lib/pwwka/queue_resque_job_handler.rb#L35

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant