Roberto Noorduijn Londono
05/31/2024, 11:25 AMRoberto Noorduijn Londono
05/31/2024, 11:27 AMschedules:
- name: postgres-to-parquet
interval: '@daily'
extractor: tap-postgres-s002
loader: target-parquet
transform: skip
start_date: 2024-02-01 00:00:00
env:
OUTPUT_FOLDER: s002
- name: salesforce-to-parquet
interval: '@daily'
extractor: tap-salesforce
loader: target-parquet
transform: skip
start_date: 2024-02-01 00:00:00
env:
OUTPUT_FOLDER: salesforce
- name: coc-to-parquet
interval: '@daily'
extractor: tap-postgres-coc
loader: target-parquet
transform: skip
start_date: 2024-02-01 00:00:00
env:
OUTPUT_FOLDER: coc
- name: dh-to-parquet
interval: '@daily'
extractor: tap-postgres-dataharbor
loader: target-parquet
transform: skip
start_date: 2024-02-01 00:00:00
env:
OUTPUT_FOLDER: dataharbor
and I call these with the command: meltano --environment={staging|production} schedule run <schedule_name>
however, if I check the values that are actually being written to my remote state in azure blob storage I only see the following:Edgar RamÃrez (Arch.dev)
05/31/2024, 12:58 PMmeltano run
. Which values did you expect?Roberto Noorduijn Londono
05/31/2024, 12:59 PMstaging:<schedule-name>
Roberto Noorduijn Londono
05/31/2024, 1:02 PM<environment_name>:<tap_name>-to-<target_name>:<state_id_suffix>
https://docs.meltano.com/concepts/environments#state-id-suffixRoberto Noorduijn Londono
05/31/2024, 2:30 PM- name: salesforce-to-parquet
tasks:
- tap-salesforce target-parquet
and then reference that in the schedule block, then I do get the environment prefix.Edgar RamÃrez (Arch.dev)
05/31/2024, 2:53 PMjob
does indeed result in using the <environment_name>:<tap_name>-to-<target_name>:<state_id_suffix>
scheme because it defers to `meltano run`: https://github.com/meltano/meltano/blob/effdf0bf6f346002951022ef60e6e98eb8b29869/src/meltano/core/schedule_service.py#L355-L361
Referencing a extractor-loader pair results in the schedule name being used as the state ID: https://github.com/meltano/meltano/blob/effdf0bf6f346002951022ef60e6e98eb8b29869/src/meltano/core/schedule.py#L111-L116
This should probably be explained in https://docs.meltano.com/reference/command-line-interface/#schedule. PRs welcome if you'd like to contribute.
https://github.com/meltano/meltano/issues/8565Edgar RamÃrez (Arch.dev)
05/31/2024, 6:24 PM