vincbeck commented on code in PR #35770:
URL: https://github.com/apache/airflow/pull/35770#discussion_r1400971022
##########
tests/system/providers/amazon/aws/example_ec2.py:
##########
@@ -150,6 +153,22 @@ def parse_response(instance_ids: list):
)
# [END howto_operator_ec2_terminate_instance]
terminate_instance.trigger_rule = TriggerRule.ALL_DONE
+
+ # [START howto_operator_ec2_hibernate_instance]
+ hibernate_instance = EC2HibernateInstanceOperator(
+ task_id="hibernate_instace",
+ instance_id=instance_id,
+ )
+ # [END howto_operator_ec2_hibernate_instance]
+ hibernate_instance.trigger_rule = TriggerRule.ALL_DONE
+
+ # [START howto_operator_ec2_reboot_instance]
+ reboot_instance = EC2RebootInstanceOperator(
+ task_id="reboot_instace",
+ instance_id=instance_id,
+ )
+ # [END howto_operator_ec2_reboot_instance]
+ reboot_instance.trigger_rule = TriggerRule.ALL_DONE
Review Comment:
Nice catch!
--
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]