potiuk commented on code in PR #30226:
URL: https://github.com/apache/airflow/pull/30226#discussion_r1148006649
##########
airflow/providers/amazon/aws/triggers/redshift_cluster.py:
##########
@@ -70,6 +70,16 @@ async def run(self) -> AsyncIterator["TriggerEvent"]:
else:
if self.attempts < 1:
yield TriggerEvent({"status": "error", "message":
f"{self.task_id} failed"})
+ elif self.operation_type == "resume_cluster":
+ response = await hook.resume_cluster(
+ cluster_identifier=self.cluster_identifier,
+ polling_period_seconds=self.poll_interval,
+ )
+ if response.get("status") == "success":
+ yield TriggerEvent(response)
+ else:
+ if self.attempts < 1:
+ yield TriggerEvent({"status": "error", "message":
f"{self.task_id} failed"})
Review Comment:
Yeah I saw the "red" dots today at the dashboard (Hey I am looking at it
from time to time) and this comment made me realise where it comes from :)
--
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]