Skip to content

Commit

Permalink
fix get_job_update returning error (#4427)
Browse files Browse the repository at this point in the history
When get_progress specified to true, but there is no record of progress for given job
Endpoint will fail and return error.

Nothing cricial but should be fixed.
  • Loading branch information
pyranota authored Sep 24, 2024
1 parent 4d5415d commit ad69c08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/windmill-api/src/jobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4663,8 +4663,8 @@ async fn get_job_update(
"progress_perc"

)
.fetch_one(&db)
.await?
.fetch_optional(&db)
.await?.and_then(|inner| inner)
} else {
None
};
Expand Down

0 comments on commit ad69c08

Please sign in to comment.