raft-tech / TANF-app

Repo for development of a new TANF Data Reporting System
Other
16 stars 3 forks source link

"Migrations recently applied, need to reindex elastic" cron job #2947

Open jtimpe opened 2 months ago

jtimpe commented 2 months ago

Description:

As part of #2870, we discussed the approach of running elasticsearch reindexing on a cron schedule to avoid any end-user impact. This approach is imperfect: reindexing only needs to be done when migrations are added to a particular set of models (search_indexes.models), and even then only for that model. Reindexing on any cron schedule is inefficient and leaves the door open to a failure or partial success when we don't need to take that risk.

To address this, create another cron or post-deploy task that

Acceptance Criteria: Create a list of functional outcomes that must be achieved to complete this issue

Tasks: Create a list of granular, specific work items that must be completed to deliver the desired outcomes of this issue

Notes: Add additional useful information, such as related issues and functionality that isn't covered by this specific issue, and other considerations that will be helpful for anyone reading this

Open Questions: Please include any questions or decisions that must be made before beginning work or to confidently call this issue complete

robgendron commented 2 months ago

Backlog Refinement:

Manual vs automated reindexing (notification or cron)? Automated