---
title: BGTaskScheduler.Error.Code.immediateRunIneligible
framework: backgroundtasks
role: symbol
role_heading: Case
path: backgroundtasks/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.

## Declaration

```swift
case immediateRunIneligible
```

## Discussion

Discussion The framework throws this error when a BGContinuedProcessingTaskRequest that your app submits with strategy set to  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.

## See Also

### Identifying an error

- [BGTaskScheduler.Error.Code.notPermitted](backgroundtasks/bgtaskscheduler/error/code/notpermitted.md)
- [BGTaskScheduler.Error.Code.tooManyPendingTaskRequests](backgroundtasks/bgtaskscheduler/error/code/toomanypendingtaskrequests.md)
- [BGTaskScheduler.Error.Code.unavailable](backgroundtasks/bgtaskscheduler/error/code/unavailable.md)
