Skip to content

Commit

Permalink
name change to work_id. #190
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Dec 16, 2014
1 parent 0d1e7c3 commit 0b98025
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/source_job.rb
Expand Up @@ -13,7 +13,7 @@ class SourceJob < Struct.new(:rs_ids, :source_id)
include CustomError

def enqueue(_job)
# keep track of when the article was queued up
# keep track of when the work was queued up
RetrievalStatus.where("id in (?)", rs_ids).update_all(queued_at: Time.zone.now)
end

Expand All @@ -30,7 +30,7 @@ def perform
rs = RetrievalStatus.find(rs_id)

# Track API response result and duration in api_responses table
response = { article_id: rs.article_id, source_id: rs.source_id, retrieval_status_id: rs_id }
response = { work_id: rs.work_id, source_id: rs.source_id, retrieval_status_id: rs_id }
start_time = Time.zone.now
ActiveSupport::Notifications.instrument("api_response.get") do |payload|
response.merge!(rs.perform_get_data)
Expand Down

0 comments on commit 0b98025

Please sign in to comment.