Skip to content

Commit

Permalink
fix: remove rescue error in sidekiq job (#2401)
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <[email protected]>
  • Loading branch information
zmcNotafraid authored Jan 10, 2025
1 parent 7b6f8fd commit 19edcf4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions app/services/charts/daily_statistic_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ def call
daily_statistic.from_scratch = from_scratch
daily_statistic.reset!(updated_attrs)
daily_statistic
rescue StandardError => e
Rails.logger.error "Error occurred during DailyStatisticGenerator error: #{e.message}"
end

private
Expand Down
2 changes: 1 addition & 1 deletion app/workers/charts/daily_statistic.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Charts
class DailyStatistic
include Sidekiq::Worker
sidekiq_options queue: "critical", backtrace: 20
sidekiq_options queue: "critical"

# iterate from the creation timestamp of last daily statistic record to now day by day
# and generate daily statistic record for each day
Expand Down

0 comments on commit 19edcf4

Please sign in to comment.