Skip to content

Commit

Permalink
feat: added RemoteProcess.isFinished to allow tracking when streami…
Browse files Browse the repository at this point in the history
…ng was completed
  • Loading branch information
grisha87 committed Jul 11, 2024
1 parent de6cd74 commit 4989850
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/activity/exe-unit/process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 4989850

Please sign in to comment.