Draft: Gc update dags
Compare changes
Files
9@@ -36,7 +35,7 @@ user_id = "{{ dag_run.conf['execution_context'].get('userId') }}"
@@ -51,45 +50,20 @@ params = {
env_vars = {'SPRING_PROFILES_ACTIVE': 'gcp', 'storage_service_endpoint': '{{ var.value.core__service__storage__url }}', 'schema_service_endpoint': '{{ var.value.core__service__schema__url }}', 'search_service_endpoint': '{{ var.value.core__service__search__url }}', 'partition_service_endpoint': '{{ var.value.core__service__partition__url }}', 'unit_service_endpoint': '{{ var.value.core__service__unit__url }}', 'file_service_endpoint': '{{ var.value.core__service__file__url }}', 'dataset_service_endpoint': '{{ var.value.core__service__dataset__url }}', 'workflow_service_endpoint': '{{ var.value.core__service__workflow__url }}', 'data_service_to_use': 'file'}
'-jar /app/csv-parser-gc.jar \'{"id": "{{ dag_run.conf[\'execution_context\'][\'id\'] }}", "authorization": "{{ dag_run.conf[\'authToken\'] }}", "dataPartitionId": "{{ dag_run.conf[\'execution_context\'][\'dataPartitionId\'] }}", "steps": ["LOAD_FROM_CSV", "TYPE_COERCION", "ID", "ACL", "LEGAL", "KIND", "META", "TAGS", "UNIT", "CRS", "RELATIONSHIP", "STORE_TO_OSDU"], "dataServiceName": "{{ dag_run.conf[\'execution_context\'].get(\'data_service_to_use\', \'file\') }}"}\''
), 'config_file': '/home/airflow/composer_kube_config', 'startup_timeout_seconds': 300, 'cmds': ['sh', '-c', 'java -Djava.security.egd=file:/dev/./urandom -jar /app/csv-parser-gc.jar \'{"id": "{{ dag_run.conf[\'execution_context\'][\'id\'] }}", "authorization": "{{ dag_run.conf[\'authToken\'] }}", "dataPartitionId": "{{ dag_run.conf[\'execution_context\'][\'dataPartitionId\'] }}", "steps": ["LOAD_FROM_CSV", "TYPE_COERCION", "ID", "ACL", "LEGAL", "KIND", "META", "TAGS", "UNIT", "CRS", "RELATIONSHIP", "STORE_TO_OSDU"], "dataServiceName": "{{ dag_run.conf[\'execution_context\'].get(\'data_service_to_use\', \'file\') }}"}\'']}
@@ -116,7 +90,7 @@ with DAG(