Optionalconnection?: ProviderConfig | ProvidersConfigshort-form format for the connection options for the store, stream, sub, and search clients
Optionalreclaimthe number of times to reclaim a stream before giving up and moving the message to a dead-letter queue or other error handling mechanism
Optionalreclaimthe number of milliseconds to wait before reclaiming a stream; depending upon the provider this may be an explicit retry event, consuming a message from the stream and re-queueing it (dlq, etc), or it may be a configurable delay before the provider exposes the message to the consumer again. It is up to the provider, but expressed in milliseconds here.
OptionalretryRetry policy for stream messages. Configures automatic retry behavior with exponential backoff for failed operations. Applied to the stream connection during initialization.
OptionaltaskTask queue identifier used for connection pooling optimization. When provided, connections will be reused across providers (store, sub, stream) that share the same task queue and database configuration.
the topic/task queue that the worker subscribes to (stream_name)
Optionalworkflowthe workflow function name for dispatch routing (workflow_name column). When set, workers sharing the same topic use a singleton consumer that fetches batches and dispatches by workflowName.
The callback function to execute when a message is dequeued from the target stream