All Products
Search
Document Center

Function Compute:RunOptions

Last Updated:Sep 14, 2024
ParameterTypeDescriptionExample
object

The parameters that are configured for the runtime environment.

batchWindowBatchWindow

The batch window configurations.

retryStrategyRetryStrategy

The information about the retry policy that is used if events fail to be pushed.

deadLetterQueueDeadLetterQueue

Specifies whether to enable dead-letter queues. By default, dead-letter queues are disabled. Messages that fail to be pushed are discarded after the maximum number of retries specified by the retry policy is reached.

maximumTaskslong

The concurrency quota. This quota indicates the number of consumers.

1
errorsTolerancestring

The exception tolerance policy. Valid values:

  • NONE: does not tolerate exceptions.
  • ALL: tolerates all exceptions.
ALL
modestring

The underlying application mode when message data is pushed to Function Compute. Valid values:

  • event-streaming: the event streaming mode. In this mode, events are pushed in arrays. One or more message events are pushed to functions in batches based on push configurations. This mode is suitable for processing end-to-end streaming data.
  • event-driven: the event mode. Individual messages are passed as the event parameter to the function. The event follows the CloudEvents standard. Note: Batch configurations are not supported in this mode.
event-streaming