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


##########
gobblin-temporal/src/main/java/org/apache/gobblin/temporal/ddm/workflow/impl/CommitStepWorkflowImpl.java:
##########
@@ -42,22 +42,10 @@
 @Slf4j
 public class CommitStepWorkflowImpl implements CommitStepWorkflow {
 
-  private static final RetryOptions ACTIVITY_RETRY_OPTS = 
RetryOptions.newBuilder()
-      .setInitialInterval(Duration.ofSeconds(3))
-      .setMaximumInterval(Duration.ofSeconds(100))
-      .setBackoffCoefficient(2)
-      .setMaximumAttempts(4)
-      .build();
-
-  private static final ActivityOptions ACTIVITY_OPTS = 
ActivityOptions.newBuilder()
-      .setStartToCloseTimeout(Duration.ofHours(3)) // TODO: make 
configurable... also add activity heartbeats
-      .setRetryOptions(ACTIVITY_RETRY_OPTS)
-      .build();
-
-  private final CommitActivity activityStub = 
Workflow.newActivityStub(CommitActivity.class, ACTIVITY_OPTS);
-
   @Override
-  public CommitStats commit(WUProcessingSpec workSpec) {
+  public CommitStats commit(WUProcessingSpec workSpec, final Properties props) 
{
+    final CommitActivity activityStub = 
Workflow.newActivityStub(CommitActivity.class, 
TemporalActivityUtils.buildActivityOptions(

Review Comment:
   Currently there is only one place it is used so we can see later if it is 
required or not.



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