diff --git a/jobs/go/sdk/README.md b/jobs/go/sdk/README.md index 88b52e41c..fc1e33d17 100644 --- a/jobs/go/sdk/README.md +++ b/jobs/go/sdk/README.md @@ -49,11 +49,11 @@ The terminal console output should look similar to this, where: ```text -== APP - job-service == dapr client initializing for: 127.0.0.1:6281 +== APP - job-service == dapr client initializing for: 127.0.0.1:6481 == APP - job-service == Registered job handler for: R2-D2 == APP - job-service == Registered job handler for: C-3PO == APP - job-service == Registered job handler for: BB-8 -== APP - job-service == Starting server on port: 6200 +== APP - job-service == Starting server on port: 6400 == APP - job-service == Job scheduled: R2-D2 == APP - job-service == Job scheduled: C-3PO == APP - job-service == 2024/07/17 18:09:59 job:{name:"C-3PO" due_time:"10s" data:{value:"{\"droid\":\"C-3PO\",\"Task\":\"Memory Wipe\"}"}} @@ -93,23 +93,23 @@ dapr stop -f . 1. Open a terminal and run the `job-service` app: ```bash -dapr run --app-id job-service --app-port 6200 --dapr-grpc-port 6281 --app-protocol grpc -- go run . +dapr run --app-id job-service --app-port 6400 --dapr-grpc-port 6481 --app-protocol grpc -- go run . ``` The output should be: ```text -== APP == dapr client initializing for: 127.0.0.1:6281 +== APP == dapr client initializing for: 127.0.0.1:6481 == APP == Registered job handler for: R2-D2 == APP == Registered job handler for: C-3PO == APP == Registered job handler for: BB-8 -== APP == Starting server on port: 6200 +== APP == Starting server on port: 6400 ``` 2. On a new terminal window, run the `job-scheduler` app: ```bash -dapr run --app-id job-scheduler --app-port 6300 -- go run . +dapr run --app-id job-scheduler --app-port 6500 -- go run . ``` The output should be: diff --git a/jobs/go/sdk/dapr.yaml b/jobs/go/sdk/dapr.yaml index d2950bc72..a826cb55b 100644 --- a/jobs/go/sdk/dapr.yaml +++ b/jobs/go/sdk/dapr.yaml @@ -2,11 +2,11 @@ version: 1 apps: - appDirPath: ./job-service/ appID: job-service - appPort: 6200 - daprGRPCPort: 6281 + appPort: 6400 + daprGRPCPort: 6481 appProtocol: grpc command: ["go", "run", "."] - appDirPath: ./job-scheduler/ appID: job-scheduler - appPort: 6300 + appPort: 6500 command: ["go", "run", "."] \ No newline at end of file diff --git a/jobs/go/sdk/job-service/job-service.go b/jobs/go/sdk/job-service/job-service.go index f056f2236..82353a00d 100644 --- a/jobs/go/sdk/job-service/job-service.go +++ b/jobs/go/sdk/job-service/job-service.go @@ -56,7 +56,7 @@ func main() { appPort := os.Getenv("APP_PORT") if appPort == "" { - appPort = "6200" + appPort = "6400" } //Create new Dapr client