You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "MaksYermak (via GitHub)" <gi...@apache.org> on 2024/03/13 12:47:52 UTC
Re: [PR] Create GKEStartKueueJobOperator operator [airflow]
MaksYermak commented on code in PR #37477:
URL: https://github.com/apache/airflow/pull/37477#discussion_r1523183823
##########
airflow/providers/google/cloud/operators/kubernetes_engine.py:
##########
@@ -898,3 +898,36 @@ def execute(self, context: Context):
).fetch_cluster_info()
return super().execute(context)
+
+
+class GKEStartKueueJobOperator(GKEStartJobOperator):
+ """
+ Executes a Kubernetes Job in Kueue in the specified Google Kubernetes Engine cluster.
+
+ :param queue_name: The name of the Queue in the cluster
+ """
+
+ def __init__(
+ self,
+ *,
+ queue_name: str,
+ **kwargs,
+ ) -> None:
+ super().__init__(**kwargs)
+ self.queue_name = queue_name
+
+ if self.suspend is False:
Review Comment:
@pankajastro I want to check that suspend is False. `not self.suspend` checks also for None.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org