Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Commit

Permalink
Remove empty blocks after resolving CC jobs
Browse files Browse the repository at this point in the history
These used to expire document page caches, but we’re no longer using those (see #416)
  • Loading branch information
reefdog committed Nov 11, 2016
1 parent cf4afc1 commit e32c06a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/controllers/import_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ def cloud_crowd
return forbidden unless correct_cloud_crowd_secret?(params[:secret])
cloud_crowd_job = JSON.parse(params[:job])
if processing_job = ProcessingJob.lookup_by_remote(cloud_crowd_job)
processing_job.resolve(cloud_crowd_job) do |pj|
# TODO: Can we remove this block now that we're not expiring the cache?
end
processing_job.resolve(cloud_crowd_job)
end

#render :plain => '201 Created', :status => 201
Expand All @@ -98,9 +96,7 @@ def update_access
return forbidden unless correct_cloud_crowd_secret?(params[:secret])
cloud_crowd_job = JSON.parse(params[:job])
if processing_job = ProcessingJob.lookup_by_remote(cloud_crowd_job)
processing_job.resolve(cloud_crowd_job) do |pj|
# TODO: Can we remove this block now that we're not expiring the cache?
end
processing_job.resolve(cloud_crowd_job)
end

render :plain => '201 Created', :status => 201
Expand Down

0 comments on commit e32c06a

Please sign in to comment.