-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Feature][Data Studio]add getJobInstanceByTaskName api #3822
base: dev
Are you sure you want to change the base?
[Feature][Data Studio]add getJobInstanceByTaskName api #3822
Conversation
@@ -174,6 +174,19 @@ public Result<JobInstance> getJobInstanceByTaskId(@RequestParam Integer id) { | |||
return Result.succeed(jobInstanceService.getJobInstanceByTaskId(id)); | |||
} | |||
|
|||
@GetMapping("/getJobInstanceByTaskName") | |||
@ApiOperation("Get Job Instance By Task Id") | |||
@ApiImplicitParam( |
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.
Please modify the parameter description below correctly
select * | ||
from dinky_job_instance | ||
where name = #{taskName} | ||
order by id desc limit 1 |
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.
Is your need to get the latest task execution instance? Or do you just need to get any one?
Thank you for your contribution. Please describe the corresponding scenarios for implementing this function. Thank you. |
Purpose of the pull request
The job name is unique globally that can use to query the job instance, but the job id is not easy to remember
Brief change log
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows: