Skip to content

Fix workflow engine starting when actor runtime is disabled#8492

Merged
JoshVanL merged 11 commits into
dapr:release-1.15from
cicoyle:fix-wf-running
Feb 25, 2025
Merged

Fix workflow engine starting when actor runtime is disabled#8492
JoshVanL merged 11 commits into
dapr:release-1.15from
cicoyle:fix-wf-running

Conversation

@cicoyle

@cicoyle cicoyle commented Feb 17, 2025

Copy link
Copy Markdown
Contributor

The workflow engine was starting even when the actor runtime was disabled due to empty placement addresses. This happened because we are checking the actor runtime status in wfengine here bc the a.disabled.Load() in the actors pkg is not externally available to the wf engine pkg. This additional check ensures the workflow engine correctly detects when actors are disabled.

I was running the emtpyaddress IT test locally and noticed it running the wf engine by this log: workflow engine started which does not occur anymore with this additional check.


Apparently for backwards compatibility for the metadata API I could not proceed with the prior approach. Therefore, I switched to checking the actor engine which is essentially the same check thru a diff approach. This prevents wf from running if placement is disabled.

@cicoyle
cicoyle requested review from a team as code owners February 17, 2025 22:15

@elena-kolevska elena-kolevska left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, but seems like there's a related test failing

@cicoyle
cicoyle marked this pull request as draft February 18, 2025 17:46
@cicoyle
cicoyle marked this pull request as ready for review February 20, 2025 16:40
@cicoyle

cicoyle commented Feb 20, 2025

Copy link
Copy Markdown
Contributor Author

The IT test failures from last run were unrelated. Will verify with this next run again

@cicoyle
cicoyle marked this pull request as draft February 20, 2025 19:47
Signed-off-by: Cassandra Coyle <[email protected]>
@cicoyle
cicoyle marked this pull request as ready for review February 20, 2025 21:03
@cicoyle

cicoyle commented Feb 20, 2025

Copy link
Copy Markdown
Contributor Author

The failing IT test is unrelated

Comment thread pkg/runtime/wfengine/wfengine.go
@cicoyle

cicoyle commented Feb 25, 2025

Copy link
Copy Markdown
Contributor Author

That e2e test has been flaky and is unrelated to the diff in this PR I believe

@JoshVanL
JoshVanL merged commit 12677f2 into dapr:release-1.15 Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants