Anthony-Nolan / Atlas

A free & open-source Donor Search Algorithm Service
GNU General Public License v3.0
9 stars 5 forks source link

Same HF set message being processed multiple times #993

Closed zabeen closed 1 year ago

zabeen commented 1 year ago

Same message being processed multiple times causes import failures ("Cannot insert duplicate key row in object 'MatchPrediction.HaplotypeFrequencySets' with unique index 'IX_RegistryCode_And_EthnicityCode'...") which eats up space in the db.

I suspect this may be something to do with lock expiry on messages for long-running HF set imports, which makes the request message available again to other function instances.

zabeen commented 1 year ago

host.json

    "serviceBus": {
      "messageHandlerOptions": {
        "maxConcurrentCalls": 1,
        "maxAutoRenewDuration": "02:00:00"
      }
    }
  },
zabeen commented 1 year ago

Testing

DmitriyShcherbina commented 1 year ago

@zabeen Testing status: Ok

image