Skip to content

Async

The Async engine within the Breezz APEX API provides robust tools for queuing, scheduling, executing, and tracking asynchronous background jobs and Platform Events in Salesforce.


Key Classes & Components

  • AsyncJobInfo: Holds runtime metadata, execution attempt counts, context user details, and payload data for active asynchronous jobs.
  • AsyncJobError: Captures processing errors, failure descriptions, and critical error flags to manage retry policies.
  • AsyncRequest: A fluent builder API used to construct async processing requests, attach payloads, set delayed execution targets, and enqueue jobs.

Core Capabilities

  • Execution Strategies: Supports asynchronous multi-queue processing, direct synchronous execution, and custom strategies.
  • Delayed Execution: Schedule jobs to execute at a specific target Datetime.
  • Chained Executions: Dynamically trigger follow-up execution passes with updated payloads.
  • Error Handling: Granular error tracking with configurable critical error flags to stop automatic reprocessing when unrecoverable errors occur.