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
282 stars 203 forks source link

Job that resubmits failed 5655 Job attempts [SILENT ERRORS] #95904

Open digitaldrk opened 3 days ago

digitaldrk commented 3 days ago

Description

Currently when a form submission via Sidekiq job fails, that's that. Veteran doesn't know this and we have to rectify manually.

We would like to get job up that runs every day and checks for errored 5655 forms. If they exist, the job will try to resubmit. We will need to take extra care and not submit successfully submitted forms. We should also add in forms incrementally based on error message over time and monitor.

Here is where we add scheduled jobs: https://github.com/department-of-veterans-affairs/vets-api/blob/master/lib/periodic_jobs.rb

Given: (The beginning state of the scenario) When: (Specific action that the user takes) Then: (Testable outcome that can be captured in the testing section, usually caused by the action in When)

Tasks

Design and Front End sync on implementation of design

Acceptance criteria

Testing

Testing procedure: If additional testing steps or credentials to perform testing are needed list them here


Ticket creation

Ticket requirements ### Required to be "Ready" - [ ] Description written - [ ] Tasks defined - [ ] Acceptance criteria written - [ ] Testing defined - [ ] Add Labels - [ ] Attach to an Epic - [ ] Estimate Points
digitaldrk commented 14 hours ago

Marking this blocked since I just realized that the VBA submission job isn't configured to retry submissions.

I am going to adjust that before I submit this PR.

Related retry ticket: https://app.zenhub.com/workspaces/vsa---debt-607736a6c8b7e2001084e3ab/issues/gh/department-of-veterans-affairs/va.gov-team/95944