Skip to content

Commit

Permalink
fix: add missing status condition
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Aug 14, 2024
1 parent e054614 commit ea538fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/pkg/checker/dbcronjob/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

const (
DefaultCheckInterval = 6 * time.Hour
GetLast6hrsCronjobRuns = "SELECT database, command, status, start_time FROM cron.job_run_details WHERE start_time >= NOW() - interval '6 hour'"
GetLast6hrsCronjobRuns = "SELECT database, command, status, start_time FROM cron.job_run_details WHERE start_time >= NOW() - interval '6 hour' AND status = 'failed'"
)

type CronJobResult struct {
Expand Down

0 comments on commit ea538fb

Please sign in to comment.