KV Watch

Start a flow with the value of a key, or of each key under a prefix, whenever it changes in a bucket of a key-value store. The url picks the store as in KV Store: redb://<path> or a NATS JetStream server.

At start, the task sends the current value of each watched key the flow has not finished; after that, each value put. A value the flow finished is not sent again, even after a restart. Values put while a value is in the flow are sent one after another. Deletes send nothing.

Configuration

- kv_watch:
    name: on_release
    url: "redb://.flowgen/state.redb"
    bucket: flowgen_system
    key: releases.latest

Fields

FieldTypeDefaultDescription
namestringrequiredTask name.
urlstringrequiredredb://<path>, or the URL of a NATS server. Supports {{env.VAR_NAME}} templates.
credentials_pathstringNATS credentials file. A redb file takes none.
bucketstringrequiredBucket name, created when missing.
keystringThe key to watch, under a folder such as releases..
key_prefixstringWatch every key under this prefix, which ends in . or / and is under a folder, such as flows.. Set either key or key_prefix.
ack_timeoutdurationHow long the flow may take to finish a value. Waits indefinitely when omitted.
max_deliverintHow many times a value is sent before it is skipped. Sent until the flow finishes it when omitted.
retryobjectRetry configuration for connecting and for sending a failed value again.

Output

FieldDescription
event.subjectThe key.
event.dataThe value: parsed JSON, else text, else bytes.

The digest of the last value the flow finished for each key is kept in the flow’s cache.

Get the edge.

News, releases, and insights — no noise.

ul. Złota 75A lok. 7, 00-819 Warszawa HQ
NIP 5090052574 · REGON 381354056
Copyright © 2026 CONNVE. All rights reserved.