or_barda
06/29/2020, 4:20 PMdouwe_maan
06/29/2020, 4:22 PMhow do I pass a configurations file to my pipeline?What are you trying to accomplish exactly? 🙂 Meltano is capable of handling all plugin configuration for you: https://meltano.com/#meltano-config
douwe_maan
06/29/2020, 4:24 PMAlso trying to figure out why when I am running manually from the UI it is not using the state?Are you saying your pipeline is using the state when you run
meltano elt ... --job_id=... manually, but not when you create a schedule in the UI (or using meltano schedule ) and then use the "Run Now" button in the UI? I assume you're gathering this based on the output of both commands? Can you please share the relevant bits?or_barda
06/29/2020, 4:28 PMdouwe_maan
06/29/2020, 4:30 PMor_barda
06/29/2020, 4:34 PMdouwe_maan
06/29/2020, 5:22 PMmeltano elt or meltano invoke ... . You can find the available setting and their env vars by running meltano config <plugin> list .
If you're using meltano schedule to schedule your pipelines, these will end up in your meltano.yml file under schedules . Here, you can override settings on a per-pipeline basis using env vars as well, by adding a env dict:
schedules:
- name: your-schedule
# ...
env:
SOME_ENV: some_value
# etcdouwe_maan
06/29/2020, 5:22 PMmeltano elt , if you're using the default DAG generator: https://gitlab.com/meltano/files-airflow/-/blob/master/bundle/orchestrate/dags/meltano.py#L75david_tout
12/03/2021, 12:03 AMenv: dictionary to take?
My use case would be do something like daily in DEV, hourly in UAT, and every 5mins in Prod, so i'd need three different cron expressions.
I was thinking of just putting some kind of $SCHEDULE parameter directly in the meltano.yml file, but that sucks because it is opaque, and means I have to set my schedule in a different place. This env: option sounds ideal...