Luftstromverbrauch für Schleife mit 2 variablen Eingängen

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Luftstromverbrauch für Schleife mit 2 variablen Eingängen

by Anonymous » 25 Apr 2025, 10:17

Das obige ist, wie ich die Eingabewerte in meiner Konfiguration YAML -Datei definiert habe.

Code: Select all

    with TaskGroup(group_id='full_data_refresh') as full_data_refresh:

for item in itertools.product(dag_config['src_config_id'],dag_config['ctry_config_id']):

config_run_ids = f'{item}'

exec_funs_mti_all_functions_run = PostgresOperator(
task_id= f'exec_funs_mti_all_functions_run{config_run_ids}',
postgres_conn_id='DDL_CONN_WRT_CSB',
sql=f'select funs_mti_all_functions_run{config_run_ids}';'
)
This is the code I have used to run my sql function: funs_mti_all_functions_run(src_config_id text,ctry_config_id text)
So, I want the task_id : f'exec_funs_mti_all_functions_run_{config_run_ids}' to run for every combination of src_config_id und ctry_config_id, das ist: < /p>
select funs_mti_all_functions_run('1','1');
select funs_mti_all_functions_run('1','2');
select funs_mti_all_functions_run('1','6');
select funs_mti_all_functions_run('1','10');
< /code>
Die Implementierung der Python -Datei für die DAG -Definition, obwohl Fehler mit der Nachricht ausgefallen ist:
"Airflow.exceptions.Airflowexception: The Key "exec_funs_mti_all_functions_run ('1', '1'). /> Kann hier jemand helfen? < /p>

Top