On Tue, Jul 22, 2008 at 7:53 PM, hemant <[EMAIL PROTECTED]> wrote:
> On 7/22/08, Cédric <[EMAIL PROTECTED]> wrote:
>> Hello everyone,
>>
>> I still have trouble since the last SVN update. I desperate to instance a
>> backgroundrb worker this way :
>>
>> MiddleMan.worker(:worker => :thumbnailer_worker, :worker_key =>
>> "thumbnailing_for_source_" +
>> @source.id.to_s).async_generate_thumbnails(:arg =>
>> @source.id)
>>
>> And all i got in my log file is this :
>
> First, get *latest* version of backgroundrb from git, also, you can't
> chain async_* like that, since in git version it will return
> worker_key (which was intended behaviour, we had a bug in 1.0.4 where
> a worker proxy was returned, rather than just worker key).
>
> Second update to packet 0.1.9 and write above code like:
>
>
> foo_key = MiddleMan.worker(:worker => :thumbnailer_worker, :worker_key
> => "thumbnailing_for_source_"[EMAIL PROTECTED])
> MiddleMan.worker(:thumbnailer_worker,foo_key).async(:arg => arg)

Lastly, why not pass those args as argument to create method directly?
_______________________________________________
Backgroundrb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/backgroundrb-devel

Reply via email to