Skip to content

Commit

Permalink
fix(job): fixed rental finalization after job completed
Browse files Browse the repository at this point in the history
  • Loading branch information
mgordel committed Jul 9, 2024
1 parent f8ac831 commit 22856f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/experimental/job/job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export class Job<Output = unknown> {

signal.addEventListener("abort", onAbort, { once: true });

return workOnGolem(exeUnit);
return workOnGolem(exeUnit).finally(() => rental.stopAndFinalize());
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/experimental/job/job_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export class JobManager {
url: this.config?.yagna?.basePath,
},
dataTransferProtocol: storageProvider,
logger: this.logger,
});
}

Expand Down

0 comments on commit 22856f1

Please sign in to comment.