Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

1.0 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "/* service='personhog-identity', operation='op_try_claim' */ \n            UPDATE lifecycle_op_tmp\n            SET lease_expires_at = now() + make_interval(secs => $2),\n                attempt = attempt + 1,\n                parked_at = NULL,\n                parked_reason = NULL\n            WHERE op_id IN (\n                SELECT op_id FROM lifecycle_op_tmp\n                WHERE op_id = $1 AND completed_at IS NULL\n                  AND (lease_expires_at IS NULL OR lease_expires_at < now())\n                  AND (parked_at IS NULL OR $3)\n                FOR UPDATE SKIP LOCKED\n            )\n            RETURNING attempt\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "attempt",
        "type_info": "Int4"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "Float8",
        "Bool"
      ]
    },
    "nullable": [
      false
    ]
  },
  "hash": "cd17e34ddaf04576e99a499e08fb518fca6855ff225d1192557dedcdcc1c0e83"
}