diff --git a/CHANGELOG.md b/CHANGELOG.md index 061aad6b..c434fd1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -81,6 +81,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ## Fixed +- `is_worker_enabled` status check moved from `VerificationFailed` to `Failed` - refactor: static attributes for telemetry - refactor: aws setup for Event Bridge - refactor: RUST_LOG filtering support diff --git a/crates/orchestrator/src/workers/mod.rs b/crates/orchestrator/src/workers/mod.rs index 1a909a8b..ec61659a 100644 --- a/crates/orchestrator/src/workers/mod.rs +++ b/crates/orchestrator/src/workers/mod.rs @@ -49,7 +49,7 @@ pub trait Worker: Send + Sync { async fn is_worker_enabled(&self, config: Arc) -> color_eyre::Result { let failed_jobs = config .database() - .get_jobs_by_statuses(vec![JobStatus::VerificationFailed, JobStatus::VerificationTimeout], Some(1)) + .get_jobs_by_statuses(vec![JobStatus::Failed, JobStatus::VerificationTimeout], Some(1)) .await?; if !failed_jobs.is_empty() {