Skip to content

Commit

Permalink
Log context/id in background job
Browse files Browse the repository at this point in the history
  • Loading branch information
CoralineAda committed Jun 17, 2024
1 parent 7020d18 commit 5f73a88
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/jobs/category_extractor_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class CategoryExtractorJob
queue_as :default

def perform(context)
Rails.logger.info("CategoryExtractorJob running with context #{context}")
Category.from(context)
end

Expand Down
1 change: 1 addition & 0 deletions app/jobs/export_to_graph_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class ExportToGraphJob

def perform(id)
return unless record = SurveyResponse.find(id)
Rails.logger.info("ExportToGraphJob running with survey response ID #{id}")
record.to_graph
end

Expand Down
1 change: 1 addition & 0 deletions app/jobs/keyword_extractor_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class KeywordExtractorJob
queue_as :default

def perform(context)
Rails.logger.info("KeywordExtractorJob running with context #{context}")
Keyword.from(context)
end

Expand Down

0 comments on commit 5f73a88

Please sign in to comment.