Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use Atomic Pointer for updating duration metric #1766

Merged
merged 5 commits into from
Jun 21, 2024

Conversation

erezrokah
Copy link
Member

@erezrokah erezrokah commented Jun 21, 2024

Summary

Follow up to #1757, as it seems we're accessing table metrics in other Go routines (e.g. resolveResource)


Use the following steps to ensure your PR is ready to be reviewed

  • Read the contribution guidelines 🧑‍🎓
  • Run go fmt to format your code 🖊
  • Lint your changes via golangci-lint run 🚨 (install golangci-lint here)
  • Update or add tests 🧪
  • Ensure the status checks below are successful ✅

@erezrokah erezrokah requested a review from a team as a code owner June 21, 2024 10:59
@github-actions github-actions bot added fix and removed fix labels Jun 21, 2024
scheduler/scheduler_dfs.go Outdated Show resolved Hide resolved
Co-authored-by: Alex Shcherbakov <candiduslynx@users.noreply.github.com>
scheduler/metrics.go Show resolved Hide resolved
Copy link
Contributor

@candiduslynx candiduslynx left a comment

Choose a reason for hiding this comment

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

can be simplified

scheduler/metrics.go Outdated Show resolved Hide resolved
Co-authored-by: Alex Shcherbakov <candiduslynx@users.noreply.github.com>
@github-actions github-actions bot added fix and removed fix labels Jun 21, 2024
@kodiakhq kodiakhq bot merged commit 61e698e into cloudquery:main Jun 21, 2024
9 checks passed
kodiakhq bot pushed a commit that referenced this pull request Jun 21, 2024
🤖 I have created a release *beep* *boop*
---


## [4.47.1](v4.47.0...v4.47.1) (2024-06-21)


### Bug Fixes

* Use Atomic Pointer for updating duration metric ([#1766](#1766)) ([61e698e](61e698e))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants