jobs: plain query string
CI / test (push) Successful in 1m2s
CI / build (push) Successful in 7m53s
CI / deploy (push) Skipped

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-18 21:32:02 +00:00
co-authored by Claude Opus 5.5
parent b5743ec7d1
commit cf2fb9d454
+2 -3
View File
@@ -46,10 +46,9 @@ async fn open_jobs(state: &AppState) -> Result<Vec<(&'static str, JobRow)>, sqlx
.fetch_all(&state.db) .fetch_all(&state.db)
.await?; .await?;
let questions: Vec<JobRow> = sqlx::query_as( let questions: Vec<JobRow> = sqlx::query_as(
&"SELECT id, 'question', status, model, fallback_model, on_fallback, attempts, started_at, created_at, \ "SELECT id, 'question', status, model, fallback_model, on_fallback, attempts, started_at, created_at, \
next_attempt_at, error \ next_attempt_at, error \
FROM questions WHERE status IN ('pending', 'running') ORDER BY created_at" FROM questions WHERE status IN ('pending', 'running') ORDER BY created_at",
.to_string(),
) )
.fetch_all(&state.db) .fetch_all(&state.db)
.await?; .await?;