<!--
{
  "availability" : [
    "iOS: 13.0.0 - 27.0.0",
    "iPadOS: 13.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "tvOS: 13.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "BackgroundTasks",
  "identifier" : "/documentation/BackgroundTasks/BGTaskScheduler/submit(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Background Tasks"
    ],
    "preciseIdentifier" : "c:objc(cs)BGTaskScheduler(im)submitTaskRequest:error:"
  },
  "title" : "submit(_:)"
}
-->

# submit(_:)

Submit a previously registered background task for execution.

```
func submit(_ taskRequest: BGTaskRequest) throws
```

## Parameters

`taskRequest`

A background task request object specifying the task identifier and optional configuration information.

## Discussion

Submitting a task request for an unexecuted task that’s already in the queue replaces the previous task request.

There can be a total of 1 refresh task and 10 processing tasks scheduled at any time. Trying to schedule more tasks returns [`BGTaskScheduler.Error.Code.tooManyPendingTaskRequests`](/documentation/BackgroundTasks/BGTaskScheduler/Error/Code/tooManyPendingTaskRequests).

---

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)