need to use the yaml representation for the arguments. So, something
like this:
clear_leaderboards_contributors:
cron: 30 6 * * 1
class: ClearLeaderboards
args:
- blah
- more
Will result in an array of `[''blah'',
''more'']` being passed in as args.
On Jan 24, 5:01 pm, Nilesh
<navale.nil...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi,
>
> I have implemented resque scheduler in my application by looking at
> example herehttps://github.com/bvandenbos/resque-scheduler. I have
> configured resque_schedule.yml file, and in that I can pass arguments
> to the resque job. My requirement is to pass more than one arguments
> to the queueing resque job. If we consider the example given,
>
> clear_leaderboards_contributors:
> cron: "30 6 * * 1"
> class: ClearLeaderboards
> args: contributors
> description: "This job resets the weekly leaderboard for
> contributions"
>
> Here I need to pass one more argument along with
''contributors''.
> Currently I have found work around for this. I am passing comma
> separated list in args, and performing split action after collecting
> arguments. I know there should be some other way to do this.
>
> Thanks in advance.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.