Job resource locks for preventing conflicting job runs
Key Takeaway
Add the objects a job changes as System Resources on the job's Resources tab. B2C Commerce then locks them while the job runs, so other jobs and users can't modify them.
A job resource lock tells B2C Commerce which objects a job works on, such as the catalog or orders. While the job runs, B2C Commerce locks those resources so other users and other jobs can't change them. The lock preserves data integrity and prevents data conflicts between processes that touch the same data.
What a job resource lock does
When you set up a job, you can assign resources to it. While the job runs, B2C Commerce locks each assigned resource. No user or other job can modify a locked resource while the job is acting on it.
For example, a job that updates the catalog can lock it. Other jobs and users then can't change the catalog, categories, or products during the update.
Aisha builds a job that sets a shipping status on each new order. She assigns order to the job as a resource. The job starts at 2:00 a.m., and B2C Commerce locks order. While the job runs, another job can't modify orders, and a user can't change them either.