---
schema_version: "1"
id: 22bc5d6574d31f82505d33b3008b13d7dbc6d1e6d791857a3c79d3699c8e0872
title: Test Elastic Limits by Overriding the Asynchronous Apex Job Limit in Nonproduction Orgs
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/release-notes/264-0-0/rn_apex_elastic_limits_test_nonprod.md
canonical_url: https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_elastic_limits_test_nonprod.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 474143903f88bc470c6659c96fbd332a4d92eb3e13bc93c214a31272fe10896d
description: To test the behavior of asynchronous Apex jobs during elastic processing, override the standard 24-hour rolling asynchronous Apex job limit in a nonproduction org. A lower override value triggers elastic processing sooner, so you can see how asynchronous jobs behave before you turn on elastic limits in production.
products:
  - Cross Cloud
release: "264"
---
# Test Elastic Limits by Overriding the Asynchronous Apex Job Limit in Nonproduction Orgs

To test the behavior of asynchronous Apex jobs during elastic processing, override the standard 24-hour rolling asynchronous Apex job limit in a nonproduction org. A lower override value triggers elastic processing sooner, so you can see how asynchronous jobs behave before you turn on elastic limits in production.

**Where:** This change applies to Lightning Experience and Salesforce Classic in Enterprise, Performance, Unlimited, and Developer editions. The override applies only to nonproduction orgs, such as sandboxes, Developer Edition orgs, and scratch orgs.

**Why:** Previously, elastic limits were available only in production and demo orgs, which made this behavior difficult to test without exceeding your org’s standard 24-hour rolling asynchronous Apex job limit.

**How:** In a nonproduction org, go to the Apex Settings page in Setup and enable the “Use elastic limits for asynchronous Apex jobs (beta)” setting. Then set the “Asynchronous Apex job limit override for nonproduction orgs” setting to a lower value than your standard limit. Leaving the field empty causes the org to default to the standard limit. Alternatively, you can configure the override by using the `ApexSettings` Metadata API type.

![The “Asynchronous Apex job limit override for nonproduction orgs” setting on the Apex Settings page in Setup. The value is set to 250.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-release-notes-salesforce_release_notes-264-0-0-production-enus/550ba85b-db1a-4608-9cd4-9a65ec96e1fa/salesforce_release_notes/images/rn_264_apex_elastic_limits_test.png)

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-release-notes-salesforce_release_notes-264-0-0-production-enus/550ba85b-db1a-4608-9cd4-9a65ec96e1fa/images/icon_note.png)

Note

In nonproduction orgs, the override value takes effect regardless of whether you turn on the elastic limits setting. If enabled, the elastic limit is either twice the override value or your org’s licensed standard limit, whichever is lower. To observe elastic behavior, you must turn on the elastic limits setting and set an override that’s lower than your org’s licensed standard limit.

For example, if your standard limit is 250,000 jobs and you set an override of 250 jobs, the elastic limit is 500 jobs. If you leave the override field empty, the limit remains at 250,000 jobs, triggering standard limit exceptions rather than testing elastic behavior.

#### See Also

- [Avoid Workflow Disruptions by Enabling Elastic Limits for Batch Jobs (Beta)](https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_elastic_limits_batch.htm&release=264.0.0&type=5 "The elastic limits beta feature is now available to Batch jobs in addition to future methods and Queueable jobs. Elastic limits helps prevent execution failures and limit exceptions when your org exceeds its standard rolling 24-hour asynchronous job limit. With this feature, you can continue to enqueue asynchronous jobs up to a higher elastic asynchronous job limit. If asynchronous jobs surpass the standard limit, the system throttles the processing rate of in-flight Batch jobs and limits new Batch jobs to 1 active job at a time.")
- [_Apex Developer Guide_: Elastic Limits for Asynchronous Apex Jobs (Beta)](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/apex_limits_elastic_limits.htm)
- [_Apex Developer Guide_: Execution Governors and Limits](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/apex_gov_limits.htm)
- [_Metadata API_: ApexSettings](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/meta_apexsettings.htm)