<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BackgroundTasks",
  "identifier" : "/documentation/BackgroundTasks/BGTaskScheduler/Error/Code/immediateRunIneligible",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Background Tasks"
    ],
    "preciseIdentifier" : "c:@E@BGTaskSchedulerErrorCode@BGTaskSchedulerErrorCodeImmediateRunIneligible"
  },
  "title" : "BGTaskScheduler.Error.Code.immediateRunIneligible"
}
-->

# BGTaskScheduler.Error.Code.immediateRunIneligible

A task scheduling error that indicates a task request didn’t run immediately due to system conditions.

```
case immediateRunIneligible
```

## Discussion

The framework throws this error when a [`BGContinuedProcessingTaskRequest`](/documentation/BackgroundTasks/BGContinuedProcessingTaskRequest) that your app submits with [`strategy`](/documentation/BackgroundTasks/BGContinuedProcessingTaskRequest/strategy) set to  [`BGContinuedProcessingTaskRequest.SubmissionStrategy.fail`](/documentation/BackgroundTasks/BGContinuedProcessingTaskRequest/SubmissionStrategy/fail) isn’t able to begin right away due to runtime conditions.

If the task that fails submission is of high importance and your app has other tasks submitted, you can try canceling the other task requests and resubmit the failed request.

---

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)