Skip to content

Commit a70f256

Browse files
committed
Merging 1.15 release branch into master
Signed-off-by: Alice Gibbons <[email protected]>
2 parents 9184620 + 43a98a1 commit a70f256

File tree

25 files changed

+64
-38
lines changed

25 files changed

+64
-38
lines changed

.github/env/global.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
DAPR_CLI_VERSION: 1.15.1
2-
DAPR_RUNTIME_VERSION: 1.15.1
1+
DAPR_CLI_VERSION: 1.15.0
2+
DAPR_RUNTIME_VERSION: 1.15.2
33
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v${DAPR_CLI_VERSION}/install/
44
DAPR_DEFAULT_IMAGE_REGISTRY: ghcr
55

bindings/python/sdk/batch/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
dapr>=1.15.0rc3
1+
dapr>=1.15.0
22
Flask
33
uvicorn
44
typing-extensions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
dapr>=1.15.0rc3
1+
dapr>=1.15.0
22
typing-extensions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dapr>=1.15.0rc3
1+
dapr>=1.15.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
dapr>=1.15.0rc3
1+
dapr>=1.15.0
22
typing-extensions

jobs/csharp/http/README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ expected_stdout_lines:
5757
expected_stderr_lines:
5858
output_match_mode: substring
5959
match_order: none
60-
background: false
60+
background: true
6161
sleep: 60
6262
timeout_seconds: 120
6363
-->
@@ -95,6 +95,18 @@ After 20 seconds, the terminal output should present the `C-3PO` job being proce
9595

9696
<!-- END_STEP -->
9797

98+
3. Stop and clean up application processes.
99+
100+
<!-- STEP
101+
name: Stop multi-app run
102+
-->
103+
104+
```bash
105+
dapr stop -f .
106+
```
107+
108+
<!-- END_STEP -->
109+
98110
## Run apps individually
99111

100112
### Schedule Jobs

jobs/csharp/http/job-scheduler/Program.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
};
1919

2020
var daprHost = Environment.GetEnvironmentVariable("DAPR_HOST") ?? "http://localhost";
21-
var schedulerDaprHttpPort = "6280";
22-
21+
var jobServiceDaprHttpPort = "6280";
2322
var httpClient = new HttpClient();
2423

2524
await Task.Delay(5000); // Wait for job-service to start
@@ -48,7 +47,7 @@
4847

4948
async Task ScheduleJob(string jobName, object jobBody)
5049
{
51-
var reqURL = $"{daprHost}:{schedulerDaprHttpPort}/v1.0-alpha1/jobs/{jobName}";
50+
var reqURL = $"{daprHost}:{jobServiceDaprHttpPort}/v1.0-alpha1/jobs/{jobName}";
5251
var jsonBody = JsonSerializer.Serialize(jobBody);
5352
var content = new StringContent(jsonBody, Encoding.UTF8, "application/json");
5453

@@ -64,8 +63,7 @@ async Task ScheduleJob(string jobName, object jobBody)
6463

6564
async Task GetJobDetails(string jobName)
6665
{
67-
var reqURL = $"{daprHost}:{schedulerDaprHttpPort}/v1.0-alpha1/jobs/{jobName}";
68-
66+
var reqURL = $"{daprHost}:{jobServiceDaprHttpPort}/v1.0-alpha1/jobs/{jobName}";
6967
var response = await httpClient.GetAsync(reqURL);
7068

7169
if (!response.IsSuccessStatusCode)

jobs/csharp/sdk/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,18 @@ After 20 seconds, the terminal output should present the `C-3PO` job being proce
101101

102102
<!-- END_STEP -->
103103

104+
3. Stop and clean up application processes.
105+
106+
<!-- STEP
107+
name: Stop multi-app run
108+
-->
109+
110+
```bash
111+
dapr stop -f .
112+
```
113+
114+
<!-- END_STEP -->
115+
104116
## Run apps individually
105117

106118
### Schedule Jobs

jobs/csharp/sdk/job-scheduler/Program.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
DueTime = 20
2727
};
2828

29-
await Task.Delay(50);
30-
3129
try
3230
{
3331
// Schedule R2-D2 job

jobs/go/http/job-scheduler/job-scheduler.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ func main() {
3535
daprHost = "http://localhost"
3636
}
3737

38-
schedulerDaprHttpPort := "6280"
38+
jobServiceDaprHttpPort := "6280"
3939

4040
client := http.Client{
4141
Timeout: 15 * time.Second,
4242
}
4343

4444
// Schedule a job using the Dapr Jobs API with short dueTime
4545
jobName := "R2-D2"
46-
reqURL := daprHost + ":" + schedulerDaprHttpPort + "/v1.0-alpha1/jobs/" + jobName
46+
reqURL := daprHost + ":" + jobServiceDaprHttpPort + "/v1.0-alpha1/jobs/" + jobName
4747

4848
req, err := http.NewRequest("POST", reqURL, strings.NewReader(r2d2JobBody))
4949
if err != nil {
@@ -71,7 +71,7 @@ func main() {
7171
// Schedule a job using the Dapr Jobs API with long dueTime
7272
jobName = "C-3PO"
7373

74-
reqURL = daprHost + ":" + schedulerDaprHttpPort + "/v1.0-alpha1/jobs/" + jobName
74+
reqURL = daprHost + ":" + jobServiceDaprHttpPort + "/v1.0-alpha1/jobs/" + jobName
7575

7676
req, err = http.NewRequest("POST", reqURL, strings.NewReader(c3poJobBody))
7777
if err != nil {
@@ -93,7 +93,7 @@ func main() {
9393

9494
// Gets a job using the Dapr Jobs API
9595
jobName = "C-3PO"
96-
reqURL = daprHost + ":" + schedulerDaprHttpPort + "/v1.0-alpha1/jobs/" + jobName
96+
reqURL = daprHost + ":" + jobServiceDaprHttpPort + "/v1.0-alpha1/jobs/" + jobName
9797

9898
res, err = http.Get(reqURL)
9999
if err != nil {

0 commit comments

Comments
 (0)