-
Notifications
You must be signed in to change notification settings - Fork 19
Investigating and diagnosing issues
Tomas Apodaca edited this page Aug 21, 2019
·
4 revisions
You can render task trees in the production console with the structure_render
method. To render a task and all its descendants:
> puts Task.find(12345).structure_render(:id, :status)
RootTask 12345, on_hold
├── DistributionTask 23456, completed
│ ├── InformalHearingPresentationTask 34567, cancelled
│ └── HearingTask 45678, completed
│ ├── ScheduleHearingTask 56789, cancelled
│ └── EvidenceSubmissionWindowTask 67890, completed
├── TrackVeteranTask 78901, in_progress
└── JudgeAssignTask 89012, on_hold
└── AttorneyTask 90123, on_hold
└── ScheduleHearingColocatedTask 01234, completed
└── ScheduleHearingColocatedTask 98765, completed
or for all tasks and their descendants attached to an appeal:
> puts LegacyAppeal.find(98765).structure_render(:id, :status, :closed_at)
LegacyAppeal 98765
├── RootTask 87654, on_hold, (closed_at)
│ └── HearingTask 76543, on_hold, (closed_at)
│ └── ScheduleHearingTask 65432, assigned, (closed_at)
├── AddressVerificationColocatedTask 54321, completed, 2019-02-11 15:22:17 UTC
│ └── AddressVerificationColocatedTask 43210, completed, 2019-02-11 15:22:17 UTC
└── ScheduleHearingColocatedTask 32109, completed, 2019-02-11 15:21:31 UTC
└── ScheduleHearingColocatedTask 21098, completed, 2019-02-11 15:21:31 UTC
The symbols you pass the method are the attributes that'll be printed next to each task in the tree.
- Home
- Acronyms and Glossary
- Caseflow products
- Caseflow Intake
- Caseflow Queue
- Appeals Consumer
- Caseflow Reader
- Caseflow eFolder
- Caseflow Hearings
- Caseflow Certification
- Caseflow APIs
- Appeal Status API
- Caseflow Dispatch
-
CSUM Roles
- System Admin
- VHA Team Management
- Active Record Queries Resource
- External Integrations
- Caseflow Demo
- Caseflow ProdTest
- Background
- Stuck Jobs
- VA Notify
-
Caseflow-Team
- Tier 4
- Bat Team
- Technical Documentation
- Backend Code Patterns
- Backend Working Group
- FACOLS, VACOLS DB Schema
- Asyncable Models
- External Data: where and why
- Data Fetching Scripts
- Caseflow Data Model and Dictionary
- User Access Permissions
- Controller Schemas
- Constants
- Frontend Best Practices
- Accessibility
- How-To
- Debugging Tips
- Adding a Feature Flag with FeatureToggle
- Editing AMA issues
- Editing a decision review
- Fixing task trees
- Investigating and diagnosing issues
- Data and Metric Request Workflow
- Exporting and Importing Appeals
- Explain page for Appeals
- Record associations and Foreign Keys
- Upgrading Ruby
- Stuck Appeals
- Testing Action Mailer Messages Locally
- Re-running Seed Files
- Rake Generator for Legacy Appeals
- Manually running Scheduled Jobs
- System Admin UI
- Caseflow Makefile
- Upgrading Postgresql from v11.7 to v14.8 Locally
- VACOLS VM Trigger Fix M1
- Using SlackService to Send a Job Alert
- Technical Talks