background tasks rails

for a bulk mailing application written in rails a solution for delivering the mails in the background should be found. the solution should just focus on the actual handling of the background tasks, mail creation and storage etc. is not necessary to be included in the solution. being able to start, stop, pause a task via a web interface would be nice too.
1 answer

solutions for background processing

the easiest way imho is ti use the spawn plugin.
download from: http://rubyforge.org/frs/?group_id=4646

usage is dead simple. just wrap the code to run in the background around 'spawn' like this:

spawn do
# code to run in background
end

more advanced solutions with full scale scheduling etc... might be using:
rufus-scheduler: http://rufus.rubyforge.org/rufus-scheduler/
backgroundRb: http://backgroundrb.rubyforge.org/

Taggings: