jobs: plain query string
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -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?;
|
||||||
|
|||||||
Reference in New Issue
Block a user