Files
momentry_core/.sqlx/query-5f27ef47fc166a0bb8f8a26ccbd7418710e3bbb280af10935ffb2eddffcd33e4.json
T
Accusys 5caecb887f fix: rebuild binary without MongoDB health check dependency
- Removed check_mongodb() from health.rs
- Health endpoint now depends only on PostgreSQL + Redis + Qdrant
- Regenerated .sqlx offline query cache (was incomplete, only 3 files)
- Binary rebuilt: target/release/momentry (47M, arm64)
- Deployed to 203 (m4promini)

Full clean-install + sample data install verified:
- clean-install.sh: ✅ (23 PASS / 0 FAIL)
- sample data: ✅ 100 videos, 899 processor_results, 100 monitor_jobs
- Health endpoint: status=ok (no MongoDB hang)
2026-11-08 23:39:53 +08:00

165 lines
4.1 KiB
JSON

{
"db_name": "PostgreSQL",
"query": "\n UPDATE command_queue\n SET status = 'processing',\n consumer_group = $1,\n consumer_id = $2,\n processing_started_at = NOW(),\n timeout_at = NOW() + ($5::bigint * INTERVAL '1 second')\n WHERE message_id IN (\n SELECT message_id\n FROM command_queue\n WHERE queue_name = $3\n AND status = 'pending'\n AND (scheduled_at IS NULL OR scheduled_at <= NOW())\n ORDER BY priority ASC, created_at ASC\n LIMIT $4\n FOR UPDATE SKIP LOCKED\n )\n RETURNING\n message_id, queue_name, queue_type,\n command_type, command_category, command_action,\n key, value, priority,\n request_id, key_id, billing_context, token_usage, cost_usd,\n status, consumer_group, consumer_id,\n retry_count, max_retries, last_error,\n created_at, scheduled_at, processing_started_at, processing_completed_at\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "message_id",
"type_info": "Varchar"
},
{
"ordinal": 1,
"name": "queue_name",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "queue_type",
"type_info": "Varchar"
},
{
"ordinal": 3,
"name": "command_type",
"type_info": "Varchar"
},
{
"ordinal": 4,
"name": "command_category",
"type_info": "Varchar"
},
{
"ordinal": 5,
"name": "command_action",
"type_info": "Varchar"
},
{
"ordinal": 6,
"name": "key",
"type_info": "Varchar"
},
{
"ordinal": 7,
"name": "value",
"type_info": "Jsonb"
},
{
"ordinal": 8,
"name": "priority",
"type_info": "Int2"
},
{
"ordinal": 9,
"name": "request_id",
"type_info": "Varchar"
},
{
"ordinal": 10,
"name": "key_id",
"type_info": "Varchar"
},
{
"ordinal": 11,
"name": "billing_context",
"type_info": "Jsonb"
},
{
"ordinal": 12,
"name": "token_usage",
"type_info": "Jsonb"
},
{
"ordinal": 13,
"name": "cost_usd",
"type_info": "Float8"
},
{
"ordinal": 14,
"name": "status",
"type_info": "Varchar"
},
{
"ordinal": 15,
"name": "consumer_group",
"type_info": "Varchar"
},
{
"ordinal": 16,
"name": "consumer_id",
"type_info": "Varchar"
},
{
"ordinal": 17,
"name": "retry_count",
"type_info": "Int4"
},
{
"ordinal": 18,
"name": "max_retries",
"type_info": "Int4"
},
{
"ordinal": 19,
"name": "last_error",
"type_info": "Text"
},
{
"ordinal": 20,
"name": "created_at",
"type_info": "Timestamptz"
},
{
"ordinal": 21,
"name": "scheduled_at",
"type_info": "Timestamptz"
},
{
"ordinal": 22,
"name": "processing_started_at",
"type_info": "Timestamptz"
},
{
"ordinal": 23,
"name": "processing_completed_at",
"type_info": "Timestamptz"
}
],
"parameters": {
"Left": [
"Varchar",
"Varchar",
"Text",
"Int8",
"Int8"
]
},
"nullable": [
false,
false,
false,
false,
true,
true,
true,
false,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true
]
},
"hash": "5f27ef47fc166a0bb8f8a26ccbd7418710e3bbb280af10935ffb2eddffcd33e4"
}