Skip to content

Commit e94273d

Browse files
authored
Ignore completed invs when determining active invocations (#71)
Before 1.5, this query worked, but since 1.5 we show the pinned invocation even for a completed invocation.
1 parent 0f74e3a commit e94273d

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "restate-operator"
3-
version = "1.9.0"
3+
version = "1.9.1"
44
authors = ["restate.dev"]
55
edition = "2021"
66
rust-version = "1.86"

charts/restate-operator-helm/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ apiVersion: v2
22
name: restate-operator-helm
33
description: An operator for Restate clusters
44
type: application
5-
version: "1.9.0"
5+
version: "1.9.1"

src/controllers/restatedeployment/controller.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -311,11 +311,12 @@ impl RestateDeployment {
311311
)
312312
.await?;
313313

314-
let service_endpoint =
315-
self.spec
316-
.restate
317-
.register
318-
.service_url(&ctx.rce_store, &versioned_name, namespace, self.spec.restate.service_path.as_deref())?;
314+
let service_endpoint = self.spec.restate.register.service_url(
315+
&ctx.rce_store,
316+
&versioned_name,
317+
namespace,
318+
self.spec.restate.service_path.as_deref(),
319+
)?;
319320

320321
let mut deployments = self.list_deployments(&ctx).await?;
321322

@@ -600,7 +601,7 @@ impl RestateDeployment {
600601
UNION
601602
SELECT DISTINCT pinned_deployment_id as id
602603
FROM sys_invocation_status
603-
WHERE pinned_deployment_id IS NOT NULL
604+
WHERE pinned_deployment_id IS NOT NULL AND status != 'completed'
604605
)
605606
SELECT d.id as deployment_id,
606607
a.id IS NOT NULL as active

0 commit comments

Comments
 (0)