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.
<!-- STEP
name: Stop multi-app run
sleep: 5
-->
```bash
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.
<!-- STEP
name: Stop multi-app run
sleep: 5
-->
```bash
dapr stop -f .
```
<!-- END_STEP -->
```

View File

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

View File

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

View File

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

View File

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

View File

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