Merge pull request #1222 from dapr/fix/go-jobs-quickstart-failures

fix: go jobs quickstarts failures
This commit is contained in:
Alice Gibbons 2025-08-18 11:54:37 +01:00 committed by GitHub
commit c3d2f4f1ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 7 additions and 25 deletions

View File

@ -49,13 +49,6 @@ The terminal console output should look similar to this, where:
2. Stop and clean up application processes. 2. Stop and clean up application processes.
<!-- STEP
name: Stop multi-app run
sleep: 5
-->
```bash ```bash
dapr stop -f . dapr stop -f .
``` ```
<!-- END_STEP -->

View File

@ -49,13 +49,6 @@ The terminal console output should look similar to this, where:
2. Stop and clean up application processes. 2. Stop and clean up application processes.
<!-- STEP
name: Stop multi-app run
sleep: 5
-->
```bash ```bash
dapr stop -f . dapr stop -f .
``` ```
<!-- END_STEP -->

View File

@ -5,7 +5,7 @@ common:
apps: apps:
- appID: job-service-sdk - appID: job-service-sdk
appDirPath: ./job-service/ appDirPath: ./job-service/
appPort: 6400 appPort: 6600
daprGRPCPort: 6481 daprGRPCPort: 6481
appProtocol: grpc appProtocol: grpc
command: ["go", "run", "."] command: ["go", "run", "."]

View File

@ -1,8 +1,6 @@
module dapr_job_example module dapr_job_example
go 1.24.4 go 1.24.6
toolchain go1.24.5
require github.com/dapr/go-sdk v1.13.0-rc.1 require github.com/dapr/go-sdk v1.13.0-rc.1

View File

@ -36,8 +36,8 @@ type App struct {
var app App var app App
func main() { func main() {
// Waiting 15 seconds for the job-service to start // Waiting 30 seconds for the job-service to start
time.Sleep(15 * time.Second) time.Sleep(30 * time.Second)
droidJobs := []DroidJob{ droidJobs := []DroidJob{
{Name: "R2-D2", Job: "Oil Change", DueTime: "5s"}, {Name: "R2-D2", Job: "Oil Change", DueTime: "5s"},

View File

@ -1,8 +1,6 @@
module dapr_job_example module dapr_job_example
go 1.24.4 go 1.24.6
toolchain go1.24.5
require ( require (
github.com/dapr/go-sdk v1.13.0-rc.1 github.com/dapr/go-sdk v1.13.0-rc.1

View File

@ -55,7 +55,7 @@ func main() {
appPort := os.Getenv("APP_PORT") appPort := os.Getenv("APP_PORT")
if appPort == "" { if appPort == "" {
appPort = "6400" appPort = "6600"
} }
//Create new Dapr client //Create new Dapr client