Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch tried to pass all arguments #39

Open
exadeci opened this issue Aug 10, 2015 · 5 comments
Open

Batch tried to pass all arguments #39

exadeci opened this issue Aug 10, 2015 · 5 comments

Comments

@exadeci
Copy link

exadeci commented Aug 10, 2015

Superworker.define(:PublishSuperWorker, :profs_ids, :institution_id) do
  batch profs_ids: :prof_id do
    CloudSk :prof_id
  end
  ExtraInfoWorker :institution_id
end

I get:
CloudSk | 5966, 1 | ArgumentError: wrong number of arguments (2 for 1)

I "fixed" it by adding an unused argument to the worker.

@brodock
Copy link

brodock commented Sep 15, 2015

Same here... is it a bug or intended behaviour, @tombenner?

@tentengr
Copy link

It seems that if you have multiple batches into a superworker, it also tries to pass all the arguments to all batches. you must have all your workers accept the same number of parameters your superworker does accept. Any news on that.

@zrice57
Copy link

zrice57 commented Feb 29, 2016

Same problem... I'm pretty sure this is a bug.

@ffiller
Copy link

ffiller commented Apr 19, 2016

@tombenner Any chance you could have a look at this issue?

@fcce
Copy link

fcce commented Nov 14, 2016

Same problem... @tombenner

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

No branches or pull requests

6 participants