Skip to content

Commit

Permalink
We are not going to use @delayed_job@ for background processing becau…
Browse files Browse the repository at this point in the history
…se it is

not platform-independent. Bj proved to be a nicer alternative.
  • Loading branch information
Daniel Martin committed Mar 12, 2011
1 parent ea641e3 commit d5be759
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions Gemfile
Expand Up @@ -4,8 +4,6 @@ gem 'rails', '3.0.5'
gem 'builder'
gem 'nokogiri'

# gem 'delayed_job'

gem 'RedCloth', '4.2.5', :require => 'redcloth'
gem 'thor', '0.14.6'

Expand Down
1 change: 0 additions & 1 deletion app/controllers/upload_controller.rb
Expand Up @@ -104,7 +104,6 @@ def parse
attachment = Attachment.find(params[:file], :conditions => { :node_id => uploadsNode.id })

Log.new(:uid => item_id).write("Enqueueing job to start in the background. Job id is #{item_id}")
#Delayed::Job::enqueue( UploadProcessingJob.new(params[:uploader], attachment.fullpath, item_id) )
Bj.submit "ruby script/rails runner lib/upload_processing_job.rb %s \"%s\" %s" % [ params[:uploader], attachment.fullpath, params[:item_id] ]
end

Expand Down
5 changes: 0 additions & 5 deletions script/delayed_job

This file was deleted.

0 comments on commit d5be759

Please sign in to comment.