Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverb123 committed Aug 25, 2024
1 parent 99aadaf commit 0c439ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/cyclotron-core/src/ops/janitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ where
// and would be useful to report.
let result = sqlx::query_scalar!(
r#"
DELETE FROM cyclotron_jobs WHERE state = 'running' AND COALESCE(last_heartbeat, $1) <= $1 AND janitor_touch_count >= $2 returning id
SELECT id FROM cyclotron_jobs WHERE state = 'running' AND COALESCE(last_heartbeat, $1) <= $1 AND janitor_touch_count >= $2
"#,
oldest_valid_heartbeat,
max_janitor_touched
Expand Down

0 comments on commit 0c439ec

Please sign in to comment.