Skip to content

Conversation

@salaboy
Copy link
Collaborator

@salaboy salaboy commented Dec 5, 2025

Description

Promoted Jobs API to DaprClient. Updated example too.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #1594

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

@salaboy salaboy requested review from a team as code owners December 5, 2025 09:29
@salaboy salaboy self-assigned this Dec 5, 2025
Copy link
Contributor

@cicoyle cicoyle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are compilation errors that need fixing from this PR - mind taking a look?

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:testCompile (default-testCompile) on project dapr-sdk-tests: Compilation failure: Compilation failure: 
Error:  /home/runner/work/java-sdk/java-sdk/sdk-tests/src/test/java/io/dapr/it/testcontainers/jobs/DaprJobsIT.java:[101,22] cannot find symbol
Error:    symbol:   method scheduleJob(io.dapr.client.domain.ScheduleJobRequest)
Error:    location: variable daprPreviewClient of type io.dapr.client.DaprPreviewClient
Error:  /home/runner/work/java-sdk/java-sdk/sdk-tests/src/test/java/io/dapr/it/testcontainers/jobs/DaprJobsIT.java:[104,26] cannot find symbol
Error:    symbol:   method getJob(io.dapr.client.domain.GetJobRequest)
Error:    location: variable daprPreviewClient of type io.dapr.client.DaprPreviewClient
Error:  /home/runner/work/java-sdk/java-sdk/sdk-tests/src/test/java/io/dapr/it/testcontainers/jobs/DaprJobsIT.java:[106,22] cannot find symbol
Error:    symbol:   method deleteJob(io.dapr.client.domain.DeleteJobRequest)
Error:    location: variable daprPreviewClient of type io.dapr.client.DaprPreviewClient
Error:  /home/runner/work/java-sdk/java-sdk/sdk-tests/src/test/java/io/dapr/it/testcontainers/jobs/DaprJobsIT.java:[118,22] cannot find symbol
Error:    symbol:   method scheduleJob(io.dapr.client.domain.ScheduleJobRequest)
Error:    location: variable daprPreviewClient of type io.dapr.client.DaprPreviewClient
Error:  /home/runner/work/java-sdk/java-sdk/sdk-tests/src/test/java/io/dapr/it/testcontainers/jobs/DaprJobsIT.java:[122,26] cannot find symbol
Error:    symbol:   method getJob(io.dapr.client.domain.GetJobRequest)
Error:    location: variable daprPreviewClient of type io.dapr.client.DaprPreviewClient
Error:  /home/runner/work/java-sdk/java-sdk/sdk-tests/src/test/java/io/dapr/it/testcontainers/jobs/DaprJobsIT.java:[124,22] cannot find symbol
Error:    symbol:   method deleteJob(io.dapr.client.domain.DeleteJobRequest)
Error:    location: variable daprPreviewClient of type io.dapr.client.DaprPreviewClient
Error:  /home/runner/work/java-sdk/java-sdk/sdk-tests/src/test/java/io/dapr/it/testcontainers/jobs/DaprJobsIT.java:[139,22] cannot find symbol
Error:    symbol:   method scheduleJob(io.dapr.client.domain.ScheduleJobRequest)
Error:    location: variable daprPreviewClient of type io.dapr.client.DaprPreviewClient
Error:  /home/runner/work/java-sdk/java-sdk/sdk-tests/src/test/java/io/dapr/it/testcontainers/jobs/DaprJobsIT.java:[147,26] cannot find symbol
Error:    symbol:   method getJob(io.dapr.client.domain.GetJobRequest)
Error:    location: variable daprPreviewClient of type io.dapr.client.DaprPreviewClient
Error:  /home/runner/work/java-sdk/java-sdk/sdk-tests/src/test/java/io/dapr/it/testcontainers/jobs/DaprJobsIT.java:[149,22] cannot find symbol
Error:    symbol:   method deleteJob(io.dapr.client.domain.DeleteJobRequest)
Error:    location: variable daprPreviewClient of type io.dapr.client.DaprPreviewClient
Error:  /home/runner/work/java-sdk/java-sdk/sdk-tests/src/test/java/io/dapr/it/testcontainers/jobs/DaprJobsIT.java:[168,22] cannot find symbol
Error:    symbol:   method scheduleJob(io.dapr.client.domain.ScheduleJobRequest)
Error:    location: variable daprPreviewClient of type io.dapr.client.DaprPreviewClient
Error:  /home/runner/work/java-sdk/java-sdk/sdk-tests/src/test/java/io/dapr/it/testcontainers/jobs/DaprJobsIT.java:[176,26] cannot find symbol
Error:    symbol:   method getJob(io.dapr.client.domain.GetJobRequest)
Error:    location: variable daprPreviewClient of type io.dapr.client.DaprPreviewClient
Error:  /home/runner/work/java-sdk/java-sdk/sdk-tests/src/test/java/io/dapr/it/testcontainers/jobs/DaprJobsIT.java:[178,22] cannot find symbol
Error:    symbol:   method deleteJob(io.dapr.client.domain.DeleteJobRequest)
Error:    location: variable daprPreviewClient of type io.dapr.client.DaprPreviewClient
Error:  /home/runner/work/java-sdk/java-sdk/sdk-tests/src/test/java/io/dapr/it/testcontainers/jobs/DaprJobsIT.java:[191,22] cannot find symbol
Error:    symbol:   method scheduleJob(io.dapr.client.domain.ScheduleJobRequest)
Error:    location: variable daprPreviewClient of type io.dapr.client.DaprPreviewClient
Error:  /home/runner/work/java-sdk/java-sdk/sdk-tests/src/test/java/io/dapr/it/testcontainers/jobs/DaprJobsIT.java:[200,26] cannot find symbol
Error:    symbol:   method getJob(io.dapr.client.domain.GetJobRequest)
Error:    location: variable daprPreviewClient of type io.dapr.client.DaprPreviewClient
Error:  /home/runner/work/java-sdk/java-sdk/sdk-tests/src/test/java/io/dapr/it/testcontainers/jobs/DaprJobsIT.java:[202,22] cannot find symbol
Error:    symbol:   method deleteJob(io.dapr.client.domain.DeleteJobRequest)
Error:    location: variable daprPreviewClient of type io.dapr.client.DaprPreviewClient
Error:  /home/runner/work/java-sdk/java-sdk/sdk-tests/src/test/java/io/dapr/it/testcontainers/jobs/DaprJobsIT.java:[217,22] cannot find symbol
Error:    symbol:   method scheduleJob(io.dapr.client.domain.ScheduleJobRequest)
Error:    location: variable daprPreviewClient of type io.dapr.client.DaprPreviewClient
Error:  /home/runner/work/java-sdk/java-sdk/sdk-tests/src/test/java/io/dapr/it/testcontainers/jobs/DaprJobsIT.java:[224,22] cannot find symbol
Error:    symbol:   method deleteJob(io.dapr.client.domain.DeleteJobRequest)
Error:    location: variable daprPreviewClient of type io.dapr.client.DaprPreviewClient

Signed-off-by: salaboy <Salaboy@gmail.com>
Signed-off-by: salaboy <Salaboy@gmail.com>
Signed-off-by: salaboy <Salaboy@gmail.com>
@salaboy
Copy link
Collaborator Author

salaboy commented Dec 5, 2025

@cicoyle I was waiting for the pipelines to come back and show me those errors.. now that they run, fixes are pushed. Let's hope the pipelines behave now.

@codecov
Copy link

codecov bot commented Dec 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.65%. Comparing base (d759c53) to head (f212303).
⚠️ Report is 241 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1602      +/-   ##
============================================
+ Coverage     76.91%   78.65%   +1.74%     
- Complexity     1592     1958     +366     
============================================
  Files           145      217      +72     
  Lines          4843     5970    +1127     
  Branches        562      661      +99     
============================================
+ Hits           3725     4696     +971     
- Misses          821      934     +113     
- Partials        297      340      +43     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Promote streaming Subcriptions and Job APIs from DaprPreviewClient to DaprClient

2 participants