Skip to content

Commit

Permalink
customise log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
leggerf authored Jan 24, 2024
1 parent 3ac0c45 commit 5304dfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kubernetes_airflow_dag_fede.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,13 @@
)
def task_with_template():
print_stuff()
return "Done with task_with_kubernetes_executor"

@task(task_id="task_with_local_executor")
def task_with_local(ds=None, **kwargs):
"""Print the Airflow context and ds variable from the context."""
print(kwargs)
print(ds)
return "Whatever you return gets printed in the logs"
return "Done with task_with_local_executor"

task_with_local() >> task_with_template()

0 comments on commit 5304dfb

Please sign in to comment.