Skip to main content

Module executor

Module executor 

Source
Expand description

Background Executor - Runs callables in background mode

The executor handles different background execution modes:

  • FireAndForget: Don’t wait for result, no streaming
  • Silent: Wait for result, but suppress streaming events
  • Deferred: Queue for later execution

@see packages/enact-schemas/src/execution.schemas.ts

Structs§

BackgroundExecution
BackgroundExecution - A background execution record @see packages/enact-schemas/src/execution.schemas.ts - backgroundExecutionSchema
BackgroundExecutionConfig
BackgroundExecutionConfig - Configuration for background execution @see packages/enact-schemas/src/execution.schemas.ts - backgroundExecutionConfigSchema
BackgroundExecutionQueue
BackgroundExecutionQueue - Queue for managing background executions This is an in-memory implementation for testing. Production uses Redis/Postgres.

Enums§

BackgroundExecutionMode
BackgroundExecutionMode - How to run a background callable @see packages/enact-schemas/src/execution.schemas.ts - backgroundExecutionModeSchema
BackgroundExecutionStatus
BackgroundExecutionStatus - Status of a background execution @see packages/enact-schemas/src/execution.schemas.ts - backgroundExecutionStatusSchema