Skip to content

Commit 3a5f7b4

Browse files
committed
To be remove
1 parent 22a3fce commit 3a5f7b4

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

airbyte-workers/src/main/java/io/airbyte/workers/config/ActivityBeanFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public RetryOptions shortRetryOptions(@Property(name = "airbyte.activity.max-att
190190
@Property(name = "airbyte.activity.max-delay",
191191
defaultValue = "600") final Integer maxDelayBetweenActivityAttemptsSeconds) {
192192
return RetryOptions.newBuilder()
193-
.setMaximumAttempts(activityNumberOfAttempts)
193+
.setMaximumAttempts(1)
194194
.setInitialInterval(Duration.ofSeconds(initialDelayBetweenActivityAttemptsSeconds))
195195
.setMaximumInterval(Duration.ofSeconds(maxDelayBetweenActivityAttemptsSeconds))
196196
.build();

airbyte-workers/src/main/java/io/airbyte/workers/temporal/scheduling/ConnectionManagerWorkflowImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ private <INPUT, OUTPUT> OUTPUT runMandatoryActivityWithOutput(final Function<INP
622622
// overwhelming temporal.
623623
log.info("Waiting {} before restarting the workflow for connection {}, to prevent spamming temporal with restarts.", workflowDelay,
624624
connectionId);
625-
Workflow.await(workflowDelay, () -> workflowState.isRetryFailedActivity());
625+
Workflow.await(Duration.ofSeconds(1), () -> workflowState.isRetryFailedActivity());
626626

627627
// Accept a manual signal to retry the failed activity during this window
628628
if (workflowState.isRetryFailedActivity()) {

airbyte-workers/src/main/java/io/airbyte/workers/temporal/scheduling/activities/JobCreationAndStatusUpdateActivityImpl.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,12 @@ public void jobSuccess(final JobSuccessInput input) {
249249
@Trace(operationName = ACTIVITY_TRACE_OPERATION_NAME)
250250
@Override
251251
public void jobSuccessWithAttemptNumber(final JobSuccessInputWithAttemptNumber input) {
252-
ApmTraceUtils.addTagsToTrace(Map.of(CONNECTION_ID_KEY, input.getConnectionId(), JOB_ID_KEY, input.getJobId()));
253-
jobSuccess(new JobSuccessInput(
254-
input.getJobId(),
255-
input.getAttemptNumber(),
256-
input.getConnectionId(),
257-
input.getStandardSyncOutput()));
252+
throw new RuntimeException("C'est casse");
253+
/*
254+
* ApmTraceUtils.addTagsToTrace(Map.of(CONNECTION_ID_KEY, input.getConnectionId(), JOB_ID_KEY,
255+
* input.getJobId())); jobSuccess(new JobSuccessInput( input.getJobId(), input.getAttemptNumber(),
256+
* input.getConnectionId(), input.getStandardSyncOutput()));
257+
*/
258258
}
259259

260260
@Trace(operationName = ACTIVITY_TRACE_OPERATION_NAME)

0 commit comments

Comments
 (0)