Displaying 2 results from an estimated 2 matches for "sampleworker".
Did you mean:
sample_worker
2008 Apr 04
5
First call to worker method doesn''t work
I have a worker as follows:
class SampleWorker < BackgrounDRb::MetaWorker
set_worker_name :sample_worker
def create(args = nil)
# this method is called, when worker is loaded for the first time
end
def my_method
# Deliver test e-mail message
Notifications.deliver_message(1, "DM")
end
end
I have a rails contr...
2007 Aug 23
2
Render partial from Backgroundrb worker?
Hi,
I have a long running task which generates JavaScript to files and I am
hoping to move this to a backgroundrb worker. The javascript is
currently generated with call to render_to_string:
File.open(File.join(target_folder, ''all.js''), "w") do |file|
file.puts(render_to_string :partial =>
''partials/shared/javascript/tags'', :locals => {