paantya commented on issue #16430:
URL: https://github.com/apache/airflow/issues/16430#issuecomment-861556833
so far it has come to mind that it will be necessary to specify each
parameter in the launch parameters, like params['clustering']['high'] :
```
params = {
"clustering": {
"high": 200,
"tests": 10,
"algo": "kmeans",
"step": 10,
"low": 15
},
"project_name": "QL/SGOB/",
"experiment": {
"name": "medium_size_clustering_estimation",
"dataset": "data_test_5e5"
},
"logger": [
{
"name": "Console"
},
{
"name": "File"
}
],
"estimation": {
"metrics": [
"calinski_harabasz",
"minus_davies_bouldin"
],
"file": true
},
"data_preparation": {
"preprocess": "normalize_histogram_mean_std",
"key": "histogram"
}
}
```
```
with DAG(
'tutorial',
default_args=default_args,
schedule_interval=timedelta(days=1),
start_date=days_ago(2),
params=params,
) as dag:
```
& then use it in a task, like this
t2 = BashOperator(
task_id='run test',
depends_on_past=False,
bash_command="python3.7 test.py params.clustering.high={{
params['clustering']['high'] }}",
)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]