[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify Scheduler Enabled #8238

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cicoyle
Copy link
Contributor
@cicoyle cicoyle commented Oct 24, 2024

Verify Scheduler is enabled before connecting.

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
@cicoyle cicoyle requested review from a team as code owners October 24, 2024 20:29
rt.jobsManager.Run,
)
if err != nil {
log.Errorf("Scheduler enabled, but dapr failed to connect. Unable to use the Jobs API.")
Copy link
Contributor

Choose a reason for hiding this comment

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

This error must be returned.

@@ -334,6 +332,16 @@ func newDaprRuntime(ctx context.Context,
},
)

if runtimeConfig.SchedulerEnabled() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Both of these runners are designed to be able to run, regardless of whether there are any addresses/clients. Scheduler is also signaled as enabled if there is a non zero number of addresses. It's not clear to me why we need this change at all.

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.

3 participants