[ 
https://issues.apache.org/jira/browse/GOBBLIN-1996?focusedWorklogId=902897&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-902897
 ]

ASF GitHub Bot logged work on GOBBLIN-1996:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 31/Jan/24 20:37
            Start Date: 31/Jan/24 20:37
    Worklog Time Spent: 10m 
      Work Description: phet commented on code in PR #3865:
URL: https://github.com/apache/gobblin/pull/3865#discussion_r1473359527


##########
gobblin-temporal/src/main/java/org/apache/gobblin/temporal/cluster/ServiceBasedAppLauncherWithoutMetrics.java:
##########
@@ -0,0 +1,22 @@
+package org.apache.gobblin.temporal.cluster;
+
+import java.util.Properties;
+
+import org.apache.gobblin.runtime.app.ServiceBasedAppLauncher;
+
+
+/**
+ * {@link ServiceBasedAppLauncher} that does not add metrics service. This is 
different from deactivating the flag
+ * {@link 
org.apache.gobblin.configuration.ConfigurationKeys#METRICS_ENABLED_KEY} because 
this will only not initialize
+ * the metrics service in the cluster manager but still allow for {@link 
org.apache.gobblin.metrics.GobblinTrackingEvent}
+ */
+public class ServiceBasedAppLauncherWithoutMetrics extends 
ServiceBasedAppLauncher {
+  public ServiceBasedAppLauncherWithoutMetrics(Properties properties, String 
appName)
+      throws Exception {
+    super(properties, appName);
+  }
+
+  @Override
+  protected void addMetricsService(Properties properties) {

Review Comment:
   alternative (w/o disabling gobblin metrics overall) would be to add an 
additional config here:
   ```
   if (GobblinMetrics.isEnabled(properties))
   ```
   (overall I prefer to use inheritance when there's not a simpler alt)





Issue Time Tracking
-------------------

    Worklog Id:     (was: 902897)
    Time Spent: 1h  (was: 50m)

> Add ability for Yarn app to terminate on finishing of temporal flow
> -------------------------------------------------------------------
>
>                 Key: GOBBLIN-1996
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1996
>             Project: Apache Gobblin
>          Issue Type: Improvement
>            Reporter: Matthew Ho
>            Priority: Major
>          Time Spent: 1h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to