Skip to content

Conversation

dustinbyrne
Copy link
Contributor

Problem

get_cohort_dependencies is called as part of the cache warming process. We shouldn't log a cache miss for every cohort processed during this time.

How did you test this code?

I've added a unit test to verify the expected behavior.

`get_cohort_dependencies` is called as part of the cache warming
process. We shouldn't log a cache miss for every cohort processed during
this time.
@dustinbyrne dustinbyrne changed the title chore: Don't update metrics when warming cache chore(cohorts): Pause cohort dependency metrics on cache warm Oct 3, 2025
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@dustinbyrne dustinbyrne requested a review from a team October 3, 2025 19:16
@posthog-project-board-bot posthog-project-board-bot bot moved this to In Review in Feature Flags Oct 3, 2025
Copy link
Contributor

@dmarticus dmarticus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense, thanks for closing the loop on this

@github-project-automation github-project-automation bot moved this from In Review to Approved in Feature Flags Oct 3, 2025
@dustinbyrne dustinbyrne merged commit 6fd7f93 into master Oct 6, 2025
188 of 189 checks passed
@dustinbyrne dustinbyrne deleted the chore/cohort-dep-cache-metrics branch October 6, 2025 13:54
@github-project-automation github-project-automation bot moved this from Approved to Done in Feature Flags Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants