The issue we have been seeing here is if we are sending multiple CreateDistribution requests to PDS backend service. The PDS backend service will fail to record the state of the distribution and pack nfts.
How to reproduce:
Mint some example MFTs and mint a distribution onchain.
Send createDistribution request via the rest API.
Before the distribution is completed, send another createDistribution request right away.
What results we have seen:
In distributions table, the distributions created by the concurrent requests will be stuck at minting state.
In the distribution_packs table, the packs will be stuck at init state, although the PackNFTs are minted on-chain.
The issue we have been seeing here is if we are sending multiple
CreateDistribution
requests to PDS backend service. The PDS backend service will fail to record the state of the distribution and pack nfts.How to reproduce:
createDistribution
request via the rest API.createDistribution
request right away.What results we have seen:
distributions
table, thedistributions
created by the concurrent requests will be stuck atminting
state.distribution_packs
table, thepacks
will be stuck atinit
state, although thePackNFTs
are minted on-chain.