{"record":{"id":"02985a6596421588","repo":"dagger/dagger","slug":"sync-persisted-hit-owner-leases-w","errorCode":null,"errorMessage":"sync persisted hit owner leases: %w","messagePattern":"sync persisted hit owner leases: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"dagql/cache_persistence_import.go","lineNumber":695,"sourceCode":"\t\t\tdecodedShared := decoded.cacheSharedResult()\n\t\t\tif decodedShared != nil {\n\t\t\t\tres.sessionResourceHandle = decodedShared.sessionResourceHandle\n\t\t\t\tif decodedShared.requiredSessionResources != nil {\n\t\t\t\t\tres.requiredSessionResources = decodedShared.requiredSessionResources.Copy()\n\t\t\t\t} else if decodedShared.sessionResourceHandle == \"\" {\n\t\t\t\t\tres.requiredSessionResources = nil\n\t\t\t\t}\n\t\t\t}\n\t\t\tres.persistedEnvelope = nil\n\t\t\tc.tracePersistedPayloadDecoded(ctx, res, state.persistedEnvelope)\n\t\t}\n\t\tres.payloadMu.Unlock()\n\t\tif onReleaser, ok := UnwrapAs[OnReleaser](decoded); ok {\n\t\t\tres.onRelease = joinOnRelease(c.resultSnapshotLeaseCleanup(res), onReleaser.OnRelease)\n\t\t}\n\t\tresolver = decodeResolver\n\t\tif err := c.syncResultSnapshotLeases(ctx, res); err != nil {\n\t\t\terr = fmt.Errorf(\"sync persisted hit owner leases: %w\", err)\n\t\t\tfinishPersistDecode(err)\n\t\t\treturn nil, err\n\t\t}\n\t\tfinishPersistDecode(nil)\n\t}\n}\n","sourceCodeStart":677,"sourceCodeEnd":702,"githubUrl":"https://github.com/dagger/dagger/blob/82ba2681dbe30d3547a1dc50ea495900ab5b6047/dagql/cache_persistence_import.go#L677-L702","documentation":"After decoding a persisted cache hit, syncing the result's snapshot owner leases (SyncResultSnapshotOwnerLeases) failed. The wrapped error comes from the lease-sync path (beginning an operation or reconciling links); the decoded value is usable, but its snapshot ownership could not be re-established against the current session.","triggerScenarios":"Thrown at dagql/cache_persistence_import.go:695 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"82ba2681dbe30d3547a1dc50ea495900ab5b6047","analyzedAt":"2026-09-05T07:21:37.930Z","contentChangedAt":"2026-09-05T07:21:37.930Z","schemaVersion":2},"datasetVersion":"2026-09-12T12:17:11.808Z"}