Blazer-007 commented on code in PR #4093:
URL: https://github.com/apache/gobblin/pull/4093#discussion_r1938792421


##########
gobblin-temporal/src/main/java/org/apache/gobblin/temporal/loadgen/workflow/impl/NestingExecOfIllustrationItemActivityWorkflowImpl.java:
##########
@@ -32,24 +34,11 @@
 public class NestingExecOfIllustrationItemActivityWorkflowImpl
     extends AbstractNestingExecWorkflowImpl<IllustrationItem, String> {
 
-  // RetryOptions specify how to automatically handle retries when Activities 
fail.
-  private static final RetryOptions ACTIVITY_RETRY_OPTS = 
RetryOptions.newBuilder()
-      .setInitialInterval(Duration.ofSeconds(1))
-      .setMaximumInterval(Duration.ofSeconds(100))
-      .setBackoffCoefficient(2)
-      .setMaximumAttempts(3)
-      .build();
-
-  private static final ActivityOptions ACTIVITY_OPTS = 
ActivityOptions.newBuilder()
-      .setStartToCloseTimeout(Duration.ofSeconds(10))
-      .setRetryOptions(ACTIVITY_RETRY_OPTS)
-      .build();
-
-  private final IllustrationItemActivity activityStub =
-      Workflow.newActivityStub(IllustrationItemActivity.class, ACTIVITY_OPTS);
-
   @Override
-  protected Promise<String> launchAsyncActivity(final IllustrationItem item) {
+  protected Promise<String> launchAsyncActivity(final IllustrationItem item, 
final Properties props) {
+    final IllustrationItemActivity activityStub =
+        Workflow.newActivityStub(IllustrationItemActivity.class,
+            
TemporalActivityUtils.buildActivityOptions(ActivityType.DEFAULT_ACTIVITY, 
props));

Review Comment:
   This class is not used in production but is useful for doing some poc / 
testing purposes, so that's why used DEFAULT_ACTIVITY



-- 
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: dev-unsubscr...@gobblin.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to