You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On migration days, we have been pulling down a subset of the COLIN extract. This already reduces the time required for migration day activities but we would like to reduce this further. We would like to accomplish this by creating a prefect flow to programatically reload only businesses that have changed in the COLIN extract and prune businesses from the migration tables that no longer meet the selection criteria for a given migration batch.
Logic for new flow:
Query COLIN for business identifiers that have changed since last extract was pulled. Ideally we have a table in the COLIN extract that has a timestamp field tracking this.
Re-run selection critiera for batch against businesses that have changed
Prune businesses from migration tables(mig_corp_batch, mig_corp_account, colin_tracking, corp_processing) where businesses no longer meet the selection critiera.
Additonal notes:
Use USE_MIGRATION_FILTER and related config for determining which business identifiers to use
Add logging so we can see which corps changed and also which ones no longer make selection criteria.
Tasks
Add a new table to COLIN extract ddl to track when extract was last refreshed
Update full COLIN extract script and subset script to update new timestamp field at start of each script before data transfer occurs. Note: it probably makes sense to populate this with the current time minus 2 hours just to be sure we get the correct delta next time we used the timestamp field.
Create prefect flow to update COLIN extract for only changed businesses for a given migration batch and to prune migration tables according to selection criteria
Activity
[-]Create Prefect Flow For Delta Extract[/-][+]Create Prefect Flow For Delta Extract + Pruning Migration Tables[/+]argush3 commentedon Mar 18, 2026
Hey team! Please add your planning poker estimate with Zenhub @ketaki-deodhar @Rajandeep98