Hi, I''ve been using bdrb for a while and just recently found the need to use the ask_status/register_status functionality of my worker. This is the error I get whenever the register_status method is encountered: ...lib/workers/session_worker.rb:10:in `create'': undefined method `register_status'' for #<SessionWorker:0xb6e7d52c> (NoMethodError) from /home/rut216/dev/illinicourses/vendor/plugins/backgroundrb/server/lib/meta_worker.rb:129:in `worker_init'' from /var/lib/gems/1.8/gems/packet-0.1.14/bin/../lib/packet/packet_worker.rb:19:in `start_worker'' from /var/lib/gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:33:in `load_worker'' from /var/lib/gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:26:in `initialize'' from /var/lib/gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:47:in `new'' from /var/lib/gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:47 from /var/lib/gems/1.8/bin/packet_worker_runner:16:in `load'' from /var/lib/gems/1.8/bin/packet_worker_runner:16 I tried the newest git and svn builds... I also greped the whole backgroundrb project directory for ask_status and register_status but found traces of neither. Is there a new way to probe a worker to check its progress? Thanks, Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20090105/1558e732/attachment-0001.html>
hemant
2009-Jan-07 02:41 UTC
[Backgroundrb-devel] ask_status/register_status deprecated???
Hi Alex, Yup, we changed the API for results a bit. Details can be found here: http://backgroundrb.rubyforge.org/workers/#result_caching Let us know if that information is not enough. On Tue, Jan 6, 2009 at 6:28 AM, Alex <rut216 at gmail.com> wrote:> Hi, > > I''ve been using bdrb for a while and just recently found the need to use the > ask_status/register_status functionality of my worker. > > This is the error I get whenever the register_status method is encountered: > > ...lib/workers/session_worker.rb:10:in `create'': undefined method > `register_status'' for #<SessionWorker:0xb6e7d52c> (NoMethodError) > from > /home/rut216/dev/illinicourses/vendor/plugins/backgroundrb/server/lib/meta_worker.rb:129:in > `worker_init'' > from > /var/lib/gems/1.8/gems/packet-0.1.14/bin/../lib/packet/packet_worker.rb:19:in > `start_worker'' > from > /var/lib/gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:33:in > `load_worker'' > from > /var/lib/gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:26:in > `initialize'' > from > /var/lib/gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:47:in `new'' > from > /var/lib/gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:47 > from /var/lib/gems/1.8/bin/packet_worker_runner:16:in `load'' > from /var/lib/gems/1.8/bin/packet_worker_runner:16 > > I tried the newest git and svn builds... > > I also greped the whole backgroundrb project directory for ask_status and > register_status but found traces of neither. Is there a new way > > to probe a worker to check its progress? > > Thanks, > > Alex > > _______________________________________________ > Backgroundrb-devel mailing list > Backgroundrb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/backgroundrb-devel >-- Let them talk of their oriental summer climes of everlasting conservatories; give me the privilege of making my own summer with my own coals. http://gnufied.org