1

How do I pass sidetiq params. When I call perform it complains the params are missing. How does sidetiq set those two params?

def perform(last_occurrence, current_occurrence)

https://github.com/tobiassvn/sidetiq/wiki/Basic-Usage

Natus Drew
  • 1,876
  • 1
  • 21
  • 23
  • Can you clarify your question, I'm not sure what you're asking? – Mike Szyndel Nov 04 '15 at 18:00
  • 1
    Ok, found the problem. "Sidetiq will check the method arity before enqueuing the job" which means that Sidetiq internally checks if the `perform` method takes zero or two params and acts accordingly. If you want to run this method from rails console you should pass two float numbers to as params (I guess 0.0 should be ok but you have to check) – Mike Szyndel Nov 04 '15 at 18:18
  • @MikeSzyndelYou saved my day, its so stupid of sidetiq to do so. I had a wrapper which would fail and i was baffled whats going on who is passing args? :+1 – Zia Ul Rehman Mughal Oct 25 '18 at 07:47

0 Answers0