> For the complete documentation index, see [llms.txt](https://docs.work-relay.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.work-relay.com/automations/global-actions-and-action-groups/using-actions/how-to-use-execute-in-background-feature.md).

# How to use "Execute in Background" feature

The **Execute in background** option can be selected for these action types:

* Call Apex
* Create Record
* Update Records
* Delete Records

It allows an action to execute asynchronously. This may help if the action cannot be executed in the current context.

{% hint style="warning" %}
If the asynchronous process fails, the user will not receive an error message on the page they are on. The error will be sent to the email address responsible for receiving background errors (see Work-Relay Settings > [Notification Settings](/administration/settings/other-settings/notification-settings.md)) or to the current user's email address.
{% endhint %}

![](/files/4940891c1023a6e147378c86b23baf0f56a0c4d0)

When **Execute in background** is selected, you can set a gap - the time the system will wait before starting the action. The gap value should be in minutes.

## Notes for actions in groups

* If an action with **Execute in background** selected fails, it does not affect execution of other actions in the Action Group, except for returned results if they are expected by other actions.
* If an action without **Execute in background** selected fails, all actions in the action group will not be executed. However, the actions history will show an execution order as though previous action executions were completed.
