Skip to content

Commit

Permalink
feat: Post job completed no validation
Browse files Browse the repository at this point in the history
  • Loading branch information
bgins committed Feb 24, 2025
1 parent 58a3ee3 commit 45b83d1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/solver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,11 @@ func (solverServer *solverServer) downloadFiles(res corehttp.ResponseWriter, req

if err := solverServer.handleFileDownload(GetDealsFilePath(id), res, func() {
solverServer.stats.PostJobRun(solverServer.store, deal)
solverServer.stats.PostReputation(deal.ResourceProvider,
stats.NewReputationBuilder().
WithJobCompletedNoValidation(true).
Build(),
)
}); err != nil {
return EmptyResponse{}, err
}
Expand Down Expand Up @@ -762,6 +767,11 @@ func (solverServer *solverServer) jobOfferDownloadFiles(res corehttp.ResponseWri

if err := solverServer.handleFileDownload(GetDealsFilePath(jobOffer.DealID), res, func() {
solverServer.stats.PostJobRun(solverServer.store, deal)
solverServer.stats.PostReputation(deal.ResourceProvider,
stats.NewReputationBuilder().
WithJobCompletedNoValidation(true).
Build(),
)
}); err != nil {
return EmptyResponse{}, err
}
Expand Down

0 comments on commit 45b83d1

Please sign in to comment.