Optional
connection?: ProviderConfig | ProvidersConfigshort-form format for the connection options for the store, stream, sub, and search clients
Optional
reclaimthe number of times to reclaim a stream before giving up and moving the message to a dead-letter queue or other error handling mechanism
Optional
reclaimthe 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.
Optional
taskTask 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 that the worker subscribes to
The callback function to execute when a message is dequeued from the target stream