File tree Expand file tree Collapse file tree 4 files changed +13
-11
lines changed
airbyte-bootloader/src/main/java/io/airbyte/bootloader
airbyte-workers/src/main/java/io/airbyte/workers/temporal Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -123,12 +123,6 @@ public void load() throws Exception {
123
123
124
124
jobPersistence .setVersion (currAirbyteVersion .serialize ());
125
125
LOGGER .info ("Set version to {}" , currAirbyteVersion );
126
-
127
- if (featureFlags .usesNewScheduler ()) {
128
- LOGGER .info ("Start cleaning zombie jobs" );
129
- cleanupZombies (jobPersistence );
130
- LOGGER .info ("Cleaning zombie jobs done" );
131
- }
132
126
}
133
127
134
128
if (postLoadExecution != null ) {
Original file line number Diff line number Diff line change @@ -26,4 +26,13 @@ public class ActivityConfiguration {
26
26
.setRetryOptions (TemporalUtils .NO_RETRY )
27
27
.build ();
28
28
29
+ public static final ActivityOptions LONG_RUN_OPTIONS = ActivityOptions .newBuilder ()
30
+ .setScheduleToCloseTimeout (Duration .ofDays (MAX_SYNC_TIMEOUT_DAYS ))
31
+ .setStartToCloseTimeout (Duration .ofDays (MAX_SYNC_TIMEOUT_DAYS ))
32
+ .setScheduleToStartTimeout (Duration .ofDays (MAX_SYNC_TIMEOUT_DAYS ))
33
+ .setCancellationType (ActivityCancellationType .WAIT_CANCELLATION_COMPLETED )
34
+ .setRetryOptions (TemporalUtils .NO_RETRY )
35
+ .setHeartbeatTimeout (Duration .ofSeconds (30 ))
36
+ .build ();
37
+
29
38
}
Original file line number Diff line number Diff line change @@ -32,10 +32,11 @@ public class SyncWorkflowImpl implements SyncWorkflow {
32
32
.build ())
33
33
.build ();
34
34
35
- private final ReplicationActivity replicationActivity = Workflow .newActivityStub (ReplicationActivity .class , ActivityConfiguration .OPTIONS );
36
- private final NormalizationActivity normalizationActivity = Workflow .newActivityStub (NormalizationActivity .class , ActivityConfiguration .OPTIONS );
35
+ private final ReplicationActivity replicationActivity = Workflow .newActivityStub (ReplicationActivity .class , ActivityConfiguration .LONG_RUN_OPTIONS );
36
+ private final NormalizationActivity normalizationActivity =
37
+ Workflow .newActivityStub (NormalizationActivity .class , ActivityConfiguration .LONG_RUN_OPTIONS );
37
38
private final DbtTransformationActivity dbtTransformationActivity =
38
- Workflow .newActivityStub (DbtTransformationActivity .class , ActivityConfiguration .OPTIONS );
39
+ Workflow .newActivityStub (DbtTransformationActivity .class , ActivityConfiguration .LONG_RUN_OPTIONS );
39
40
private final PersistStateActivity persistActivity = Workflow .newActivityStub (PersistStateActivity .class , persistOptions );
40
41
41
42
@ Override
Original file line number Diff line number Diff line change @@ -31,9 +31,7 @@ services:
31
31
- DATABASE_URL=${DATABASE_URL}
32
32
- DATABASE_USER=${DATABASE_USER}
33
33
- LOG_LEVEL=${LOG_LEVEL}
34
- - NEW_SCHEDULER=${NEW_SCHEDULER}
35
34
- RUN_DATABASE_MIGRATION_ON_STARTUP=${RUN_DATABASE_MIGRATION_ON_STARTUP}
36
- - TEMPORAL_HOST=${TEMPORAL_HOST}
37
35
db :
38
36
image : airbyte/db:${VERSION}
39
37
logging : *default-logging
You can’t perform that action at this time.
0 commit comments