Skip to content

Commit

Permalink
fix: include the last stream execute result in streamingBatch
Browse files Browse the repository at this point in the history
  • Loading branch information
SewerynKras committed Jun 27, 2024
1 parent 81b1921 commit c3c4964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/activity/exe-script-executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export class ExeScriptExecutor {
private streamingBatch(batchId: string, batchSize: number): Observable<Result> {
return this.activityModule.observeStreamingBatchEvents(this.activity, batchId).pipe(
map((resultEvents) => this.parseEventToResult(resultEvents, batchSize)),
takeWhile((result) => !result.isBatchFinished),
takeWhile((result) => !result.isBatchFinished, true),
// transform to domain error
catchError((error) => {
throw new GolemWorkError(
Expand Down

0 comments on commit c3c4964

Please sign in to comment.