You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jobs/python/http/README.md
+47-31Lines changed: 47 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,6 @@ In this quickstart, you'll schedule, get, and delete a job using Dapr's Job API.
4
4
5
5
Visit [this](https://docs.dapr.io/developing-applications/building-blocks/jobs/) link for more information about Dapr and the Jobs API.
6
6
7
-
8
7
This quickstart includes two apps:
9
8
10
9
-`job-scheduler/app.py`, responsible for scheduling, retrieving and deleting jobs.
@@ -21,31 +20,42 @@ This quickstart includes two apps:
21
20
-`JOB_SERVICE_DAPR_HTTP_PORT`: The Dapr HTTP port of the job-service (default: 6280)
22
21
-`DAPR_HOST`: The Dapr host address (default: http://localhost)
23
22
24
-
## Install dependencies
23
+
## Run all apps with multi-app run template file
24
+
25
+
This section shows how to run both applications at once using [multi-app run template files](https://docs.dapr.io/developing-applications/local-development/multi-app-dapr-run/multi-app-overview/) with `dapr run -f .`. This enables you to test the interactions between multiple applications and will `schedule`, `run`, `get`, and `delete` jobs within a single process.
26
+
27
+
1. Build the apps:
25
28
26
29
<!-- STEP
27
30
name: Install python dependencies
28
31
-->
32
+
29
33
```bash
30
34
pip3 install -r requirements.txt
31
35
```
32
-
<!-- END_STEP -->
33
-
34
-
## Run all apps with multi-app run template file
35
36
36
-
This section shows how to run both applications at once using [multi-app run template files](https://docs.dapr.io/developing-applications/local-development/multi-app-dapr-run/multi-app-overview/) with `dapr run -f .`. This enables you to test the interactions between multiple applications and will `schedule`, `run`, `get`, and `delete` jobs within a single process.
37
+
<!-- END_STEP -->
37
38
38
-
Open a new terminal window and run the multi app run template:
You should see an error message indicating that the job was not found:
179
195
180
196
```text
181
-
{"errorCode":"ERR_JOBS_NOT_FOUND","message":"job not found: app||default||job-service||c-3po"}
182
-
```
197
+
{"errorCode":"DAPR_SCHEDULER_GET_JOB","message":"failed to get job due to: rpc error: code = NotFound desc = job not found: c-3po","details":[{"@type":"type.googleapis.com/google.rpc.ErrorInfo","domain":"dapr.io","metadata":{"appID":"job-service","namespace":"default"},"reason":"DAPR_SCHEDULER_GET_JOB"}]}
0 commit comments