we've recently been seeing StartFlowRun create mul...
# ask-community
b
we've recently been seeing StartFlowRun create multiple runs with the same
idempotency_key
<24 hours apart (say 30 mins). is the idempotency key queryable from graphql so we could try to debug what's going on?
n
Hi @Brett Naul - you should be able to get idemp keys directly on the flow_run object:
Copy code
query {
  flow_run {
    id
    idempotency_key
  }
}
b
perfect, thanks! but also....how..?
Copy code
{
  "data": {
    "flow_run": [
      {
        "id": "c49cbc75-61d9-4aaf-b857-18ee1890b4cd",
        "idempotency_key": "99a33702-9dcf-4e77-aa1f-c42474b8375c",
        "created": "2021-06-09T19:31:12.624111+00:00"
      },
      {
        "id": "0af54c93-fdd3-4010-85bd-c01437cc2423",
        "idempotency_key": "99a33702-9dcf-4e77-aa1f-c42474b8375c",
        "created": "2021-06-09T19:58:21.764191+00:00"
      }
    ]
  }
}
n
Hm, do the parameters change between those runs?
b
nope, in fact it's created by a worker dying and then the exact same parent task re-running. so there's really no way there could be anything different about the runs
n
Hm let me elevate this, I don't have any immediate thoughts then
@Brett Naul for the runs you posted, the containing flow ids are different for those runs - it looks like the flow was re-registered between those calls
b
ahhh ok, I guess the actual task must be doing something like "register-and-run" so when it re-runs they both happen. thanks for the explanation!
😄 1