fix: configure batches provider to use kv_postgres backend

The batches provider was still referencing kv_default backend which
doesn't exist in the postgres configuration. This would cause runtime
failures when using the batches API with postgres store enabled.

Now properly configured to use kv_postgres backend with batches namespace.
This commit is contained in:
Roy Belio 2025-11-05 16:05:48 +02:00
parent 3b34efb81a
commit 2efaecd887
2 changed files with 13 additions and 1 deletions

View file

@ -231,7 +231,7 @@ providers:
config:
kvstore:
namespace: batches
backend: kv_default
backend: kv_postgres
storage:
backends:
kv_postgres:

View file

@ -282,6 +282,18 @@ def get_distribution_template(name: str = "starter") -> DistributionTemplate:
),
)
],
"batches": [
Provider(
provider_id="reference",
provider_type="inline::reference",
config=dict(
kvstore=KVStoreReference(
backend="kv_postgres",
namespace="batches",
).model_dump(exclude_none=True),
),
)
],
},
storage_backends={
"kv_postgres": PostgresKVStoreConfig.sample_run_config(),