department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
278 stars 194 forks source link

Check if claim was previously submitted before submitting a Pension claim #86426

Open TaiWilkin opened 2 weeks ago

TaiWilkin commented 2 weeks ago

When we upload the claim to Lighthouse within the PensionBenefitsIntakeJob, if the job fails after we submit, there's no way to 'undo' this step, and we don't have any checks in place to see if the claim has already been submitted, so this step could get run more than once.

Update Sidekiq job to check whether a copy of the claim has been successfully submitted to Lighthouse before attempting to submit the claim.

wayne-weibel commented 1 week ago

I would think you would want to see if a submission to LH was still 'pending' or 'success', and stop if so. On 'failure' attempt the submission again. We still want a record of the failure though