eskarimov commented on code in PR #24099:
URL: https://github.com/apache/airflow/pull/24099#discussion_r907247923
##########
airflow/providers/amazon/aws/example_dags/example_dms.py:
##########
@@ -334,14 +309,26 @@ def clean_up():
)
# [END howto_operator_dms_delete_task]
+ delete_db_instance = RdsDeleteDbInstanceOperator(
+ task_id='delete_db_instance',
+ db_instance_identifier=RDS_INSTANCE_NAME,
+ rds_kwargs={
+ "SkipFinalSnapshot": True,
+ },
+ trigger_rule='all_done',
+ )
+
chain(
- set_up()
+ create_db_instance
+ >> create_sample_table()
+ >> create_dms_assets()
>> create_task
>> start_task
>> describe_tasks
>> await_task_start
>> stop_task
>> await_task_stop
>> delete_task
- >> clean_up()
+ >> delete_dms_assets()
+ >> delete_db_instance
)
Review Comment:
👍 changed as suggested.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]