o-nikolas commented on code in PR #30226:
URL: https://github.com/apache/airflow/pull/30226#discussion_r1148019008


##########
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:
   I'm happy with the scope reduction. Merging this one to unblock the system 
tests. We can circle back on cleaning up the deferrable implementation later.



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