<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKContainer/allLongLivedOperationIDs()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "s:So11CKContainerC8CloudKitE24allLongLivedOperationIDsSaySSGyYaKF"
  },
  "title" : "allLongLivedOperationIDs()"
}
-->

# allLongLivedOperationIDs()

Fetches the IDs of any long-lived operations that are running and returns them to an awaiting caller.

```
func allLongLivedOperationIDs() async throws -> [CKOperation.ID]
```

## Return Value

The IDs of all of the long-lived operations that are running.

## Discussion

A long-lived operation is one that continues to run after the user closes your app. When a long-lived operation completes, or your app or the system cancels it, it’s no longer active and CloudKit doesn’t include its ID in the returned array. An operation is complete when the system calls its completion handler.

Use the [`longLivedOperation(for:)`](/documentation/CloudKit/CKContainer/longLivedOperation(for:)) method to fetch the operation for a specific ID.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)