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

Common: Rewrite check_stuck_rules #146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

voetberg
Copy link
Contributor

@voetberg voetberg commented Aug 6, 2024

  • Change gauge to PrometheusPusher
  • update to sqla2.0
  • sort imports
  • update header
  • change except to except Exception

Updated queries compile as (using the dev tables as an example)

SELECT count(*) AS count_1 
FROM dev.rules 
WHERE dev.rules.state = :state_1 AND (dev.rules.error != :error_1 OR dev.rules.error IS NULL)
SELECT count(*) AS count_1 
FROM dev.rules 
WHERE dev.rules.state = :state_1 AND dev.rules.error = :error_1

@voetberg voetberg requested a review from dchristidis as a code owner August 6, 2024 14:43
@voetberg voetberg changed the title Common: Rewrite check_stuck_rules - change gauge to PrometheusPusher,… Common: Rewrite check_stuck_rules Aug 6, 2024
* change gauge to PrometheusPusher
* update to sqla2.0
* sort import
* change header
* Change except to except Exception
@voetberg voetberg force-pushed the 129-modern-check-stuck-rules branch from f851d69 to 3c38ccf Compare August 6, 2024 15:18
@voetberg voetberg added the Common label Aug 6, 2024
@voetberg voetberg self-assigned this Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant