dashton90 commented on code in PR #35770:
URL: https://github.com/apache/airflow/pull/35770#discussion_r1401386350


##########
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:
   [Updated the order to align with the chain 
order](https://github.com/apache/airflow/pull/35770/files#diff-c2d4bfb7a226fbdae32c03ef2b0382f74ea4875c12c32370677069b165ca8c37R184)



-- 
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]

Reply via email to