Skip to content

Commit

Permalink
fix: job sdk validation
Browse files Browse the repository at this point in the history
Signed-off-by: mikeee <[email protected]>
  • Loading branch information
mikeee committed Jul 26, 2024
1 parent 68dc3d3 commit 8a13e63
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
25 changes: 14 additions & 11 deletions jobs/go/sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,19 @@ This section shows how to run both applications at once using [multi-app run tem
Open a new terminal window and run the multi app run template:

<!-- STEP
name: Run multi app run template (disabled)
expected_stdout_lines:
expected_stderr_lines:
output_match_mode: substring
match_order: none
background: true
sleep: 15
timeout_seconds: 30
-->
<!-- END_STEP -->
name: Run multi app run template
expected_stdout_lines:
- '== APP - job-service == Starting droid: R2-D2'
- '== APP - job-service == Executing maintenance job: Oil Change'
- '== APP - job-service == Starting droid: C-3PO'
- '== APP - job-service == Executing maintenance job: Memory Wipe'
expected_stderr_lines:
output_match_mode: substring
match_order: none
background: true
sleep: 120
timeout_seconds: 180
-->

```bash
dapr run -f .
Expand Down Expand Up @@ -81,7 +84,7 @@ After 10 seconds, the terminal output should present the `C3-PO` job being proce
dapr stop -f .
```


<!-- END_STEP -->

## Run the Jobs APIs individually

Expand Down
6 changes: 5 additions & 1 deletion jobs/go/sdk/dapr.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
version: 1
common:
daprdLogDestination: console
logLevel: info
schedulerHostAddress: localhost:50006
apps:
- appDirPath: ./job-service/
appID: job-service
Expand All @@ -9,4 +13,4 @@ apps:
- appDirPath: ./job-scheduler/
appID: job-scheduler
appPort: 6500
command: ["go", "run", "."]
command: ["go", "run", "."]

0 comments on commit 8a13e63

Please sign in to comment.