Skip to content

**<sub><sub>![P1 Badge](https://img.shields.io/badge/P1-orange?style=flat)</sub></sub> Parse the JSON status RPC result before checking ok** #155

Description

@BigSimmo

P1 Badge 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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions