Eduardo Dominguez
2006-Nov-21 04:57 UTC
[Backgroundrb-devel] rendering from within a worker
I''m using backgroundrb for its scheduled jobs. Now, a job that runs on a daily basis creates an xml file that I currently create with an .rxml template. Can I run a controller action from within a worker ? Can I render() a template from within a worker ? Sorry, I haven''t grasped the whole rails/backgroundrb relationship so I don''t know what I can and not do. Thanks for any help. -- Lalo
Why don''t you put the file into results and then pick it up from a controller? Like in the backgroundrb example, you could poll a controller action to see if the worker has finished its job and if so, render the rxml from the controller. On 11/20/06, Eduardo Dominguez <eduardodmz at gmail.com> wrote:> > I''m using backgroundrb for its scheduled jobs. > > Now, a job that runs on a daily basis creates an xml file that I > currently create with an .rxml template. > > Can I run a controller action from within a worker ? Can I render() a > template from within a worker ? > > Sorry, I haven''t grasped the whole rails/backgroundrb relationship so > I don''t know what I can and not do. > > Thanks for any help. > -- > Lalo > _______________________________________________ > Backgroundrb-devel mailing list > Backgroundrb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/backgroundrb-devel >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20061121/56310ccc/attachment.html