Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TrackVeteranTask opened after case is complete #14460

Closed
2 tasks
pkarman opened this issue Jun 3, 2020 · 1 comment
Closed
2 tasks

TrackVeteranTask opened after case is complete #14460

pkarman opened this issue Jun 3, 2020 · 1 comment
Labels
Feature: generic-queue Priority: Medium Blocking issue w/workaround, or "second in" priority for new work. Product: caseflow-queue Team: Echo 🐬 Type: Investigation User: VSO Veteran Service Organization

Comments

@pkarman
Copy link
Contributor

pkarman commented Jun 3, 2020

Description

We have instances where a TrackVeteranTask is opened after a RootTask is closed.

q = AppealsWithClosedRootTaskOpenChildrenQuery.new
q.call.select { |appeal| appeal.tasks.open.map(&:type).include?("TrackVeteranTask") }.count

We need to either:

  • discover if this is a code bug, fix it and clean up the data
  • or, create an ongoing scheduled job to close these tasks

Background/context/resources

https://dsva.slack.com/archives/CJL810329/p1591130098371200

See also #14255 #14307

Technical notes

For Appeal 25440 the extra task was created a full minute after the root task was closed.

@hschallhorn hschallhorn added Feature: generic-queue Priority: Medium Blocking issue w/workaround, or "second in" priority for new work. Product: caseflow-queue Stakeholder: BVA Functionality associated with the Board of Veterans' Appeals workflows/feature requests labels Jun 4, 2020
@hschallhorn
Copy link
Contributor

what is this chart?

1 | 
2 | ||||||
3 | |||
5 | 
8 | 

Check callbacks being skipped.
Check whether the calls that create TVT aren't properly checking appeal state

Why 2?

  • Believe this could be related to the (many) open tasks we have on closed root tasks. Could be opening track veteran tasks when these other open tasks are processed (sync_tracking_tasks
    new_task_count, closed_task_count = TrackVeteranTask.sync_tracking_tasks(appeal)
  • Limited scope to investigate

@hschallhorn hschallhorn added User: VSO Veteran Service Organization and removed Stakeholder: BVA Functionality associated with the Board of Veterans' Appeals workflows/feature requests labels Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: generic-queue Priority: Medium Blocking issue w/workaround, or "second in" priority for new work. Product: caseflow-queue Team: Echo 🐬 Type: Investigation User: VSO Veteran Service Organization
Projects
None yet
Development

No branches or pull requests

3 participants