Isolating Background Session State

APEX gives each background job its own session state so its changes stay separate from the user session.

When the APEX engine enqueues an execution chain’s background process job, it:

From that moment, the background process has its own session state, separate from the user’s. Each background process can read and write its own state as needed. However, changes in one background process do not affect the user session or any other background process.