shahar1 commented on code in PR #64900:
URL: https://github.com/apache/airflow/pull/64900#discussion_r3112619956


##########
providers/google/src/airflow/providers/google/cloud/operators/dataflow.py:
##########
@@ -1176,3 +1181,286 @@ def execute(self, context: Context):
             raise AirflowException(self.response)
 
         return None
+
+class DataflowGetMetricsOperator(GoogleCloudBaseOperator):
+    """
+    Fetches metrics for a Dataflow job and routes the result to one or more
+    destinations based on what the caller provides.

Review Comment:
   Thanks for your response:
   - There are XCom backends that support larger payloads (e.g., S3). When 
talking about KBs of JSON, even a regular postgres database should handle it  
easily (I'm talking about a **single** dataflow job, see next)
   - "Thousands of concurrent jobs" is not the operator's concern - the 
operator deals with one job, scaling it to thousands is a deployment issue 
(which should be handled by the choosing the appropriate backend)
   - Please note that we already have an equivalent `DataflowJobMetricsSensor` 
that handles exactly one job's metrics without any routing concerns - this 
operator should follow the same pattern.



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