-
Notifications
You must be signed in to change notification settings - Fork 217
Add the Jobs SDK #1255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the Jobs SDK #1255
Conversation
dabf1dd
to
3bfeca2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@siri-varma can you take a look at my comments? @artur-ciocanu I am curious about your feedback here too.
testcontainers-dapr/src/main/java/io/dapr/testcontainers/DaprSchedulerContainer.java
Show resolved
Hide resolved
@siri-varma thanks for all your work! I have reviewed the PR and I wanted to share a few general observations/recommendations:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@siri-varma please check my comment and let me know your thoughts.
Had a discussion with @artur-ciocanu regarding the comments and this is what we were thinking
Will address the above in a different PR Will also move CronExpressionBuilder to a different PR for two reasons
|
@artur-ciocanu Addressed all the comments |
Addressed the comments |
/assign |
fc63a33
to
1fddb66
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@siri-varma I have left some comments. Could you please take a look and let me know your thoughts.
Thank you.
sdk-tests/src/test/java/io/dapr/it/testcontainers/TestDaprJobsConfiguration.java
Show resolved
Hide resolved
@siri-varma could you please take a look at the tests, it seems that the scheduler container is not working as expected. Also I am wondering if we could avoid using |
@siri-varma I see the following errors for IT tests:
And
Could you please make sure you use the latest Dapr container |
@artur-ciocanu I am traveling and will be back in couple of days. Will update the pr by Friday |
5afd23d
to
a709bdb
Compare
@artur-ciocanu Addressed all the comments, fixed integration tests |
The 1.14.4 is coming from actors. I will update it in a separate pr. Will create an issue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR looks good to me.. @siri-varma did you wanted to make more changes? Is there something still not address from @artur-ciocanu comments?
@salaboy Thanks for the review and nope, I don't have anything else to address |
Created an issue and a PR to address the dapr runtime version consistency |
@siri-varma could you please make sure that you do not accidentally replace fully qualified imports with Also I think it would be cleaner to wait for your PR #1299 and then fix the conflicts in this PR and then merge. |
Signed-off-by: sirivarma <[email protected]>
Signed-off-by: siri-varma <[email protected]>
…a/java-sdk into users/svegiraju/cron-2
Signed-off-by: siri-varma <[email protected]>
Signed-off-by: siri-varma <[email protected]>
58fb53a
to
ea74912
Compare
Signed-off-by: siri-varma <[email protected]>
ea74912
to
17429d6
Compare
Signed-off-by: siri-varma <[email protected]>
Signed-off-by: siri-varma <[email protected]>
@artur-ciocanu Please look at this commit to 68568c5. I have reduced the spaces from 4 to 2 |
Signed-off-by: Siri Varma Vegiraju <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
@cicoyle this PR looks good to be merged, please take a look and let's get it in. Thank you. |
@cicoyle let me know if I need to do anything else for merging the pr |
Signed-off-by: Siri Varma Vegiraju <[email protected]>
Signed-off-by: Siri Varma Vegiraju <[email protected]>
Signed-off-by: Siri Varma Vegiraju <[email protected]>
Signed-off-by: Siri Varma Vegiraju <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1255 +/- ##
============================================
- Coverage 76.91% 75.88% -1.03%
- Complexity 1592 1684 +92
============================================
Files 145 200 +55
Lines 4843 5267 +424
Branches 562 574 +12
============================================
+ Hits 3725 3997 +272
- Misses 821 949 +128
- Partials 297 321 +24 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Thank you for getting the Jobs API over the line @siri-varma 🙌🏻 |
PR Overview: Jobs SDK Integration
This PR introduces the Jobs SDK with three main APIs: Schedule, Get, and Delete Job. The implementation is divided into the following categories:
Core Logic
The core logic is implemented in two key classes, as detailed below:
*
,/
, and other ranges).- References: Jobs API and .NET SDK.
- Validates inputs and performs async operations for job management.
API Contracts
The following are the method signatures for the key APIs:
1. Schedule Job
This API schedules a job based on the provided request.
createJobRequest
— Contains the necessary parameters to schedule the job.Mono<Void>
to signify the completion of the scheduling operation.2. Get Job
This API retrieves a job's status or details based on the given request.
getJobRequest
— Contains the parameters needed to retrieve a job.Mono<GetJobResponse>
, which includes the job details or status.3. Delete Job
This API deletes a job based on the provided request.
deleteJobRequest
— Contains the necessary parameters to delete a job.Mono<Void>
to signify the deletion operation has been completed.Models
The rest of the classes in this SDK are models that are constructed using the getter/setter pattern,
Tests
The testing section includes:
Issue Reference
We strive to ensure that all PRs are opened based on a relevant issue, where the problem or feature has been discussed prior to implementation.
This PR addresses and closes the following issue: #1101, #1300
Checklist
Please make sure you've completed the relevant tasks for this PR: