---
title: BGTaskScheduler.Error.Code.tooManyPendingTaskRequests
framework: backgroundtasks
role: symbol
role_heading: Case
path: backgroundtasks/bgtaskscheduler/error/code/toomanypendingtaskrequests
---

# BGTaskScheduler.Error.Code.tooManyPendingTaskRequests

A task scheduling error that indicates there are too many pending tasks of the type requested.

## Declaration

```swift
case tooManyPendingTaskRequests
```

## Discussion

Discussion Try canceling some existing task requests and then resubmit the request that failed.

## See Also

### Identifying an error

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