---
schema_version: "1"
id: fb81d8419614699366d8594626f48b933dc674d5dbf444d4cec769835538ddcc
title: Locking System Resources during Job Execution
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_system_resources_per_entity.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_system_resources_per_entity.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 82f1730ea71767e8945436a5e4e473a395e4d64e7f30031ee7c80b80b1acb405
description: When you create a B2C Commerce job, prevent another job from modifying system resources while your job is executing. To know which system resources to assign to the job, know which resources are related to which entity. For example, if your job modifies customers, assign the system resource profile to your job because customers are related to the profile system resource. When your job is executing, another job can't modify the profile system resource and unexpectedly change the outcome of your job. Resource locks are re-entrant locks. In other words, if a job locks a resource, job steps in that job can lock the same resource again. The product index Rebuild task doesn't require any resource locks except itself. However, the product index update task requires resources locks on Product, Catalog and Category.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Locking System Resources during Job Execution

When you create a B2C Commerce job, prevent another job from modifying system resources while your job is executing. To know which system resources to assign to the job, know which resources are related to which entity. For example, if your job modifies customers, assign the system resource profile to your job because customers are related to the profile system resource. When your job is executing, another job can't modify the profile system resource and unexpectedly change the outcome of your job. Resource locks are re-entrant locks. In other words, if a job locks a resource, job steps in that job can lock the same resource again. The product index Rebuild task doesn't require any resource locks except itself. However, the product index update task requires resources locks on Product, Catalog and Category.

The following table shows which resources an entity update affects. If your job modifies the entity, you assign the associated system resource to the job, so your job locks the resource while it executes and another job can't modify it.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d35836e39">Entity</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d35836e42">System Resource </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Content Library</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">content, folder, and library</td>

          </tr>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Customer</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">profile</td>

          </tr>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Customer List</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">customerlist</td>

          </tr>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Product List</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">productlist</td>

          </tr>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Customer Group</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">customergroup and profile</td>

          </tr>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Custom Objects</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">customobject</td>

          </tr>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Catalog</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">catalog, product, and metadata</td>

          </tr>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Price Book</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">pricebook</td>

          </tr>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Inventory List</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">inventory</td>

          </tr>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Order</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">address and order</td>

          </tr>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Tax Table</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">taxation</td>

          </tr>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Shipping Method</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">shipping</td>

          </tr>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Payment Method</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">paymentmethod</td>

          </tr>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Search Settings</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">searchindex</td>

          </tr>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Gift Certificate</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">giftcertificate</td>

          </tr>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Source Code Group</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">sourcecode</td>

          </tr>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Store</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">store</td>

          </tr>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Content Slot</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">slot</td>

          </tr>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Meta Data</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">metadata</td>

          </tr>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Job Schedules</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">schedule</td>

          </tr>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Services</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">service, servicecredential, and serviceprofile</td>

          </tr>
          <tr class="">
            <td data-label="Entity" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e39 ">Site</td>

            <td data-label="System Resource" class="slds-cell-wrap" style="vertical-align:top;" headers="d35836e42 ">
              <p>site</p>
              <p style="margin-bottom:0;">Site import also affects resources for each element of the site that is
                imported. For example, a site import that contains stores locks the store
                resource.</p>
            </td>

          </tr>
        </tbody>
      </table>