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.
|
||||
|
||||
<!-- STEP
|
||||
name: Stop multi-app run
|
||||
sleep: 5
|
||||
-->
|
||||
|
||||
```bash
|
||||
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.
|
||||
|
||||
<!-- STEP
|
||||
name: Stop multi-app run
|
||||
sleep: 5
|
||||
-->
|
||||
|
||||
```bash
|
||||
dapr stop -f .
|
||||
```
|
||||
|
||||
<!-- END_STEP -->
|
||||
```
|
||||
|
|
@ -5,7 +5,7 @@ common:
|
|||
apps:
|
||||
- appID: job-service-sdk
|
||||
appDirPath: ./job-service/
|
||||
appPort: 6400
|
||||
appPort: 6600
|
||||
daprGRPCPort: 6481
|
||||
appProtocol: grpc
|
||||
command: ["go", "run", "."]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ func main() {
|
|||
|
||||
appPort := os.Getenv("APP_PORT")
|
||||
if appPort == "" {
|
||||
appPort = "6400"
|
||||
appPort = "6600"
|
||||
}
|
||||
|
||||
//Create new Dapr client
|
||||
|
|
|
|||
Loading…
Reference in New Issue