diff --git a/src/activity/exe-unit/process.ts b/src/activity/exe-unit/process.ts index 44c69d0a0..a7ef22b3d 100644 --- a/src/activity/exe-unit/process.ts +++ b/src/activity/exe-unit/process.ts @@ -95,4 +95,11 @@ export class RemoteProcess { this.subscription.add(() => end()); }); } + + /** + * Checks if the exe-script batch from Yagna has completed, reflecting all work and streaming to be completed + */ + isFinished() { + return this.lastResult?.isBatchFinished ?? false; + } }