Skip to content

Commit

Permalink
Stop fetchjing release metrics for stale production releases
Browse files Browse the repository at this point in the history
  • Loading branch information
nid90 committed Jan 21, 2025
1 parent 318ece6 commit 1ca7a5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/jobs/fetch_health_metrics_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ def perform(production_release_id, frequency)
release = production_release.release
return if release.stopped?
return if release.finished? && production_release.beyond_monitoring_period?
return if production_release.stale?

begin
production_release.fetch_health_data!
Expand Down
1 change: 1 addition & 0 deletions app/models/production_release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def fetch_health_data!
return if store_rollout.blank?
return if beyond_monitoring_period?
return if monitoring_provider.blank?
return if stale?

release_data = monitoring_provider.find_release(platform, version_name, build_number)

Expand Down

0 comments on commit 1ca7a5f

Please sign in to comment.