Parse the JSON status RPC result before checking ok
For any claimed job that completes, defers, or fails, this helper calls a function declared as returns jsonb; select * from public.update_indexing_v3_agent_job_status(...) therefore returns a single column named after the function, not an ok column. rows[0]?.ok is always undefined, so the helper throws after the database update and the worker treats successful completions/deferrals as failures (with markJobFailure able to abort the whole request the same way).
Useful? React with 👍 / 👎.
Originally posted by @chatgpt-codex-connector[bot] in #134 (comment)
For any claimed job that completes, defers, or fails, this helper calls a function declared as
returns jsonb;select * from public.update_indexing_v3_agent_job_status(...)therefore returns a single column named after the function, not anokcolumn.rows[0]?.okis always undefined, so the helper throws after the database update and the worker treats successful completions/deferrals as failures (withmarkJobFailureable to abort the whole request the same way).Useful? React with 👍 / 👎.
Originally posted by @chatgpt-codex-connector[bot] in #134 (comment)