diff --git a/jobs/go/sdk/README.md b/jobs/go/sdk/README.md index 682855a8d..cb3ca2c2b 100644 --- a/jobs/go/sdk/README.md +++ b/jobs/go/sdk/README.md @@ -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: - + 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 . @@ -81,7 +84,7 @@ After 10 seconds, the terminal output should present the `C3-PO` job being proce dapr stop -f . ``` - + ## Run the Jobs APIs individually diff --git a/jobs/go/sdk/dapr.yaml b/jobs/go/sdk/dapr.yaml index a826cb55b..257fa815b 100644 --- a/jobs/go/sdk/dapr.yaml +++ b/jobs/go/sdk/dapr.yaml @@ -1,4 +1,8 @@ version: 1 +common: + daprdLogDestination: console + logLevel: info + schedulerHostAddress: localhost:50006 apps: - appDirPath: ./job-service/ appID: job-service @@ -9,4 +13,4 @@ apps: - appDirPath: ./job-scheduler/ appID: job-scheduler appPort: 6500 - command: ["go", "run", "."] \ No newline at end of file + command: ["go", "run", "."]