---
title: longLivedOperationWasPersistedBlock
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/ckoperation/longlivedoperationwaspersistedblock
---

# longLivedOperationWasPersistedBlock

The closure to execute when the server begins to store callbacks for the long-lived operation.

## Declaration

```swift
var longLivedOperationWasPersistedBlock: (() -> Void)? { get set }
```

## Discussion

Discussion If your app exits before CloudKit calls this property’s value, the system doesn’t include the operation’s ID in the results of calls to the allLongLivedOperationIDs() method. For more information, see Long-Lived Operations.

## See Also

### Managing the Operation’s Configuration

- [configuration](cloudkit/ckoperation/configuration-swift.property.md)
- [CKOperation.Configuration](cloudkit/ckoperation/configuration-swift.class.md)
- [group](cloudkit/ckoperation/group.md)
