Hi, we use pipeline with a loop from a database query. each table gets several variables from the table row .
for each row from the table we run its own stream on the replication
how can we run specific tables manually ?
We dont want to change the main is_active columns because it serves the scheduled process.
1. best option is if there is a --tag or --stream name ?
2. fails: when one of the streams fail with abort the all pipeline stops . I prefer the behavior of replication
that it will fail the specific stream and at the end the status of the pipeline will be failed.
for now we put warn. the process is success even if one of the stream failed and then we
need to query the log and find the error to alert the developers.
thanks
steps:
# All active medium tables
- type: query
id: cfg
connection: target_stg
query: |
SELECT table_name, cycle_limit, hours_back, cutoff
FROM zstg.vw_z_refresh
WHERE is_active = 1 and size_group = 'medium'
ORDER BY table_name
- type: group
id: refresh
loop: state.cfg.result
steps:
- type: replication
path: elts/fin/fin_inc.yaml
streams:
- "{loop.value.table_name}"
env:
CUTOFF: "{loop.value.cutoff}"
HOURS_BACK: "{loop.value.hours_back}"
CYCLE_LIMIT: "{loop.value.cycle_limit}"
on_failure: warn