Skip to content

Dapr ignore schedule-host-address #1503

Open
@HenrixG

Description

@HenrixG

Expected Behavior

If I specify the parameter --scheduler-host-address "empty", the sidecar should not periodically query the scheduler.
Second problem:
if I specify --scheduler-host-address localhost:50007, it should connect to IP 127.0.0.1 and not to the DockerImage IP.

Actual Behavior

For a specific sideCar I can't turn off the scheduler (I don't use actors, jobs, workflow) even if I give the parameter
--scheduler-host-address "empty"
--scheduler-host-address ' ' -> (fisrt image)
it always says in the log that it's trying to connect to the scheduler.

second problem:
and when I write localhost:50006 it says in the log the IP of the dockerImage where the scheduler runs. so I can't connect to the sidecar that runs outside of docker.
(second image)

Steps to Reproduce the Problem

in VisualStudio use this launchSettings.json
"Dapr": {
"commandName": "Executable",
"workingDirectory": "$(ProjectDir)",
"executablePath": "dapr",
"commandLineArgs": "run --app-id XXX --dapr-http-port 3500 --dapr-grpc-port 50001 --metrics-port 20000 --app-protocol https --placement-host-address localhost:50000 --scheduler-host-address ' ' --resources-path ../components/ --log-level debug --app-port 12000 --enable-api-logging -- dotnet run ."
}

Release Note

Dapr CLI 1.15.0
Windows 11
DockerDesktop 4.39

RELEASE NOTE:

I discussed this with @WhitWaldo(Innovian) on Discord.

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions