Merge branch 'main' of https://cloud.o-forge.io/core/oc-lib into main

merge oclib
This commit is contained in:
mr
2025-06-12 10:42:38 +02:00
6 changed files with 101 additions and 18 deletions

View File

@@ -72,10 +72,10 @@ func (p *PeerCache) LaunchPeerExecution(peerID string, dataID string,
}
mypeer.AddExecution(*pexec)
NewShallowAccessor().UpdateOne(mypeer, peerID) // Update the peer in the db
return nil, errors.New("peer is not reachable")
return nil, errors.New("peer is " + peerID + " not reachable")
} else {
if mypeer == nil {
return nil, errors.New("peer not found")
return nil, errors.New("peer " + peerID + " not found")
}
// If the peer is reachable, launch the execution
url = p.urlFormat((mypeer.Url), dt) + path // Format the URL