Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkgs/fleet/crates/fleet-queue/src/queue_broker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ fn dispatch(st: &State, path: &str, req: &Value) -> Value {
// broker since the binary-direct migration retired the
// Python helper it used to import).
let select = if req.get("rich").and_then(|r| r.as_bool()).unwrap_or(false) {
"id,queue,title,priority,status,dedupe_key,created_at,not_before,worker_id,lease_until,lane_id,attempts,max_attempts,progress"
"id,queue,title,priority,status,dedupe_key,created_at,not_before,worker_id,lease_until,lane_id,attempts,max_attempts,progress,payload"
} else {
"id,queue,title,priority,status,dedupe_key,created_at,not_before"
};
Expand Down
4 changes: 2 additions & 2 deletions pkgs/fleet/crates/fleet-queue/src/turso_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2481,7 +2481,7 @@ fn verb_list(t: &TursoBackend, req: &Value) -> Value {
let rich = req.get("rich").and_then(|r| r.as_bool()).unwrap_or(false);
let select = if rich {
"id, queue, title, priority, status, dedupe_key, created_at, not_before, \
worker_id, lease_until, lane_id, attempts, max_attempts, progress"
worker_id, lease_until, lane_id, attempts, max_attempts, progress, payload"
} else {
"id, queue, title, priority, status, dedupe_key, created_at, not_before"
};
Expand Down Expand Up @@ -2510,7 +2510,7 @@ fn verb_list(t: &TursoBackend, req: &Value) -> Value {
sql += &format!(
" ORDER BY (priority IS NULL), priority ASC, created_at ASC LIMIT {limit}"
);
let json_cols: &[&str] = if rich { &["progress"] } else { &[] };
let json_cols: &[&str] = if rich { &["progress", "payload"] } else { &[] };
match t.query_objs(&sql, &args, json_cols) {
Ok(rows) => ok(json!({"rows": rows})),
Err(e) => terr(e),
Expand Down
Loading
Loading