Skip to content

Commit

Permalink
added code for to execute python operator
Browse files Browse the repository at this point in the history
  • Loading branch information
IshanRattan committed Mar 10, 2024
1 parent 3e9bf86 commit e586024
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions programming/airflow/dags/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,9 @@ def save_time_stamp():
copy_files_task = BashOperator(task_id='copy_files_task',
bash_command=bash_cp_cmd,
dag=dag)


write_log = PythonOperator(task_id='save_ts',
python_callable=save_time_stamp,
dag=dag)

0 comments on commit e586024

Please sign in to comment.