Skip to content

Commit d242992

Browse files
committed
Fix readme
Signed-off-by: siri-varma <[email protected]>
1 parent c59ef9c commit d242992

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

jobs/java/sdk/README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,37 @@ Visit [this](https://docs.dapr.io/developing-applications/building-blocks/jobs/)
66

77
> **Note:** This example leverages the Java SDK.
88
9-
This quickstart includes one app:
9+
This quickstart includes two apps:
1010

1111
- Job Scheduler, responsible for scheduling, retrieving and deleting jobs.
12+
- Job Service, receives the triggers for the scheduled jobs.
1213

1314
## Run all apps with multi-app run template file
1415

15-
This section shows how to run the applications using a [multi-app run template file](https://docs.dapr.io/developing-applications/local-development/multi-app-dapr-run/multi-app-overview/) with `dapr run -f .`. This enables to you test the interactions between multiple applications and will `schedule`, `run`, `get`, and `delete` jobs within a single process.
16+
This section shows how to run both applications at once using a [multi-app run template file](https://docs.dapr.io/developing-applications/local-development/multi-app-dapr-run/multi-app-overview/) with `dapr run -f .`. This enables to you test the interactions between multiple applications and will `schedule`, `run`, `get`, and `delete` jobs within a single process.
1617

1718
1. Build the apps:
1819

1920
<!-- STEP
20-
name: Build dependencies for job-scheduler
21+
name: Build dependencies for job-service
2122
sleep: 1
2223
-->
2324

2425
```bash
25-
cd ./job-scheduler
26+
cd ./job-service
2627
mvn clean install
2728
cd ..
2829
```
2930

3031
<!-- END_STEP -->
3132

3233
<!-- STEP
33-
name: Build dependencies for job-service
34+
name: Build dependencies for job-scheduler
3435
sleep: 1
3536
-->
3637

3738
```bash
38-
cd ./job-service
39+
cd ./job-scheduler
3940
mvn clean install
4041
cd ..
4142
```
@@ -114,8 +115,6 @@ dapr stop -f .
114115

115116
## Run apps individually
116117

117-
### Schedule Jobs
118-
119118
1. Open a terminal and run the `job-service` app. Build the dependencies if you haven't already.
120119

121120
```bash
@@ -127,6 +126,8 @@ mvn clean install
127126
dapr run --app-id job-scheduler-sdk --app-port 8080 --dapr-grpc-port 6200 --dapr-http-port 6390 --log-level debug -- java -jar target/JobService-0.0.1-SNAPSHOT.jar com.service.JobServiceStartup
128127
```
129128

129+
This makes sure we receive triggers as part of the scheduled jobs.
130+
130131
2. Open another terminal and run the `job-scheduler` app. Build the dependencies if you haven't already.
131132

132133
```bash
@@ -138,8 +139,9 @@ mvn clean install
138139
java -jar "target/JobsScheduler-0.0.1-SNAPSHOT.jar"
139140
```
140141

141-
3. Here is how the outputs will look like
142+
This step is responsible for scheduling, getting and deleting jobs.
142143

144+
3. Here is how the outputs will look like
143145

144146
In the `job-scheduler` terminal window, the output should be:
145147

0 commit comments

Comments
 (0)