Skip to content

Commit

Permalink
fix: fix concurrent limit jobs non restarting
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Feb 10, 2025
1 parent ddf218a commit 4828a77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.

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

5 changes: 3 additions & 2 deletions backend/windmill-queue/src/jobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2040,13 +2040,14 @@ pub async fn pull(
running = false,
started_at = null,
scheduled_for = $1
WHERE id = (SELECT id FROM ping)",
WHERE id = $2",
estimated_next_schedule_timestamp,
job_uuid,
)
.fetch_all(&mut *tx)
.execute(&mut *tx)
.await
.map_err(|e| Error::internal_err(format!("Could not update and re-queue job {job_uuid}. The job will be marked as running but it is not running: {e:#}")))?;

tx.commit().await?
}
}
Expand Down

0 comments on commit 4828a77

Please sign in to comment.