Skip to content

Commit

Permalink
Merge pull request #336 from stellar/test-sources
Browse files Browse the repository at this point in the history
Add successful transforms to analyze rows
  • Loading branch information
laysabit authored Apr 2, 2024
2 parents 3c6b8fe + 591cc85 commit 4dfa61e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dags/stellar_etl_airflow/build_export_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ def build_export_task(
else:
arguments = f"""
{etl_cmd_string} 2>> stderr.out && echo "{{\\"output\\": \\"{output_file}\\",
\\"failed_transforms\\": `grep failed_transforms stderr.out | cut -d\\",\\" -f2 | cut -d\\":\\" -f2`}}" >> /airflow/xcom/return.json
\\"failed_transforms\\": `grep failed_transforms stderr.out | cut -d\\",\\" -f2 | cut -d\\":\\" -f2`\\",
\\"succcessful_transforms\\": `grep successful_transforms stderr.out | cut -d\\",\\" -f2 | cut -d\\":\\" -f2`}}" >> /airflow/xcom/return.json
"""
return KubernetesPodOperator(
service_account_name=Variable.get("k8s_service_account"),
Expand Down

0 comments on commit 4dfa61e

Please sign in to comment.