Skip to content

Measure the cost of task grant status checks #1038

Description

@jeremi

Follow-up to #1029. Both behaviours fail closed, which is intended; this is about load and latency, not correctness.

  • BREG check_task_authority calls the Casework status endpoint while holding the proposal row lock and a database connection, with a 5 s timeout. A slow Casework can hold both for up to 5 s per grant-bound write.

  • Casework task_status does a live source read on every call, so each agent write costs a source round trip, and a source outage stops agent writes.

  • Load test grant-bound BREG writes with Casework and the source slowed down, and record pool use and latency

  • Based on the result, decide whether the status call moves outside the lock, or Casework reuses source context within the grant lifetime, or nothing changes

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyReady for an implementation agent.area:bregBReg ownership.area:caseworkRegistry Casework runtime, tooling, and clientscriticality:p3Priority/criticality P3.questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions