Skip to content

Commit 4f756c9

Browse files
CUSDK-191: Removed step storage support.
When a step fails, request data is no longer stored, since we are moving towards fully stateless connectors.
1 parent ba7b7ed commit 4f756c9

File tree

10 files changed

+31
-813
lines changed

10 files changed

+31
-813
lines changed

connect/Flow.hx

Lines changed: 28 additions & 121 deletions
Large diffs are not rendered by default.

connect/Processor.hx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ import haxe.Constraints.Function;
3131
requests, depending on the type you want to process.
3232
3333
If an exception is thrown on any step, the rest of the steps will be skipped, and the next
34-
time the Processor runs, the request will be processed again. If the `Asset` of the request has
35-
a parameter with the id "__sdk_processor_step" (without quotes), the data about the state of
36-
the processing will be stored in Connect, and when the request is processed again, it will
37-
resume from the step that failed, keeping all the data that was processed up until that point.
34+
time the Processor runs, the request will be processed again.
3835
3936
You can check the `examples` folder of the SDK to check how to use the Processor in the
4037
supported target languages.

connect/flow/FlowLogger.hx

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -126,24 +126,8 @@ class FlowLogger {
126126
return fmt.formatTable(logger.getLevel(),dataCol);
127127
}
128128

129-
public function writeStepSkip(willSave:Bool) {
130-
if (willSave) {
131-
logger.write(Logger.LEVEL_INFO, 'Skipping request. Trying to save step data.');
132-
} else {
133-
logger.write(Logger.LEVEL_INFO, 'Skipping request. Step data will not be saved because feature is disabled.');
134-
}
135-
}
136-
137-
public function writeStepSavedInConnect() {
138-
logger.write(Logger.LEVEL_INFO, 'Step data saved in Connect.');
139-
}
140-
141-
public function writeStepSavedLocally() {
142-
logger.write(Logger.LEVEL_INFO, 'Step data saved locally.');
143-
}
144-
145-
public function writeStepSaveFailed() {
146-
logger.write(Logger.LEVEL_INFO, 'Step data could not be saved.');
129+
public function writeStepSkip() {
130+
logger.write(Logger.LEVEL_INFO, 'Skipping request.');
147131
}
148132

149133
public function writeMigrationMessage(request:IdModel):Void {
@@ -153,8 +137,4 @@ class FlowLogger {
153137
public function writeException(message:String):Void {
154138
logger.writeCodeBlock(Logger.LEVEL_ERROR, message, '');
155139
}
156-
157-
public function writeLoadedStepData(index:Int, storageType:String):Void {
158-
logger.write(Logger.LEVEL_INFO, 'Resuming request from step ${index + 1} with $storageType.');
159-
}
160140
}

connect/flow/FlowStore.hx

Lines changed: 0 additions & 86 deletions
This file was deleted.

connect/flow/FlowStoreDelegate.hx

Lines changed: 0 additions & 13 deletions
This file was deleted.

connect/storage/StepData.hx

Lines changed: 0 additions & 104 deletions
This file was deleted.

0 commit comments

Comments
 (0)