Skip to content

Commit

Permalink
fix worker enabled check (#187)
Browse files Browse the repository at this point in the history
* fix worker enabled check
---------

Co-authored-by: Heemank Verma <[email protected]>
  • Loading branch information
apoorvsadana and heemankv authored Dec 10, 2024
1 parent d970d22 commit c2e00d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion crates/orchestrator/src/workers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub trait Worker: Send + Sync {
async fn is_worker_enabled(&self, config: Arc<Config>) -> color_eyre::Result<bool> {
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() {
Expand Down

0 comments on commit c2e00d1

Please sign in to comment.