mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(lambda): leave NextMarker out of the last page of durable execution state (#8263)
The invocation event's InitialExecutionState carried "NextMarker": "", and so did the last page of GetDurableExecutionState. AWS leaves the key out in both places, and Floci now does the same. A page with operations left still carries NextMarker.
This commit is contained in:
1 parent
ea8d875cad
commit
235179313b
4 files changed
+36
-4
No files matched your search
@@ -312,7 +312,7 @@ public class DurableExecutionService implements Resettable {
|
||||
indexed.add(new Cursored<>(String.format("%010d", i), operations.get(i)));
|
||||
}
|
||||
PaginatedResult<DurableOperation> page = paginate(indexed, pageSize(maxItems), marker, "durable-state");
|
||||
return new StatePage(page.items(), page.nextToken() != null ? page.nextToken() : "");
|
||||
return new StatePage(page.items(), page.nextToken());
|
||||
}
|
||||
|
||||
/** Stopping a closed execution changes nothing and reports the time it closed. */
|
||||
|
||||
@@ -64,7 +64,6 @@ public final class DurableWire {
|
||||
for (DurableOperation operation : execution.replayedOperations()) {
|
||||
operations.add(operation(operation, true));
|
||||
}
|
||||
state.put("NextMarker", "");
|
||||
ArrayNode updated = event.putArray("UpdatedOperationIds");
|
||||
updatedOperationIds.forEach(updated::add);
|
||||
return event;
|
||||
|
||||
Reference in new issue
Block a user