mirror of https://github.com/dapr/quickstarts.git
Merge pull request #1222 from dapr/fix/go-jobs-quickstart-failures
fix: go jobs quickstarts failures
This commit is contained in:
commit
c3d2f4f1ce
|
|
@ -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 -->
|
|
||||||
|
|
@ -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 -->
|
|
||||||
|
|
@ -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", "."]
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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"},
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue