Hey Folks,

I am running Rails 2.1.1 and am having problems getting a result from ask_result in my controller:

MiddleMan.worker(:uploader_worker, 'abc123').ask_result("percent_complete") is returning nil

I am creating my worker like this:

MiddleMan.new_worker(:worker => :uploader_worker, :worker_key => 'abc123')

        worker = MiddleMan.worker(:uploader_worker, 'abc123')
        worker.async_upload(:arg => files_to_upload)

When I run the above command in script/console I get a return value

MiddleMan.worker(:uploader_worker, 'abc123').ask_result("percent_complete")
        -> 14

I am using periodically_call_remote to call my controller action.

Oh and I'm using memcache to store the data in cache.

Really lost here why the controller can't access the data.

Thanks!



Cameron
Big Bang Technology Inc.
http://www.bigbangtechnology.com/

_______________________________________________
Backgroundrb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/backgroundrb-devel

Reply via email to