-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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][Api] When use api to run a process we want get processInstanceId #13184
Conversation
...ce/src/main/java/org/apache/dolphinscheduler/service/process/TriggerRelationServiceImpl.java
Fixed
Show fixed
Hide fixed
...ce/src/main/java/org/apache/dolphinscheduler/service/process/TriggerRelationServiceImpl.java
Fixed
Show fixed
Hide fixed
Codecov Report
@@ Coverage Diff @@
## dev #13184 +/- ##
=========================================
Coverage 39.55% 39.56%
- Complexity 4326 4335 +9
=========================================
Files 1084 1086 +2
Lines 40916 40969 +53
Branches 4697 4702 +5
=========================================
+ Hits 16186 16210 +24
- Misses 22927 22954 +27
- Partials 1803 1805 +2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
...eduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ProcessInstanceService.java
Outdated
Show resolved
Hide resolved
dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/entity/TriggerRelation.java
Outdated
Show resolved
Hide resolved
...uler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml
Outdated
Show resolved
Hide resolved
@@ -241,4 +241,6 @@ void sendStartTask2Master(ProcessInstance processInstance, int taskId, | |||
void forceProcessInstanceSuccessByTaskInstanceId(Integer taskInstanceId); | |||
|
|||
Integer queryTestDataSourceId(Integer onlineDataSourceId); | |||
|
|||
void saveCommandTrigger(Integer commandId, Integer processInstanceId); |
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.
Can we use the commandDao
? And then we can put the command operation into it.
dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/entity/TriggerRelation.java
Outdated
Show resolved
Hide resolved
dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/entity/TriggerRelation.java
Outdated
Show resolved
Hide resolved
...uler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml
Outdated
Show resolved
Hide resolved
...ce/src/main/java/org/apache/dolphinscheduler/service/process/TriggerRelationServiceImpl.java
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! |
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.
LGTM
Purpose of the pull request
If this ID is obtained, the user can track the states of the task by it. processId cannot be used because multiple jobs may be triggered.
Brief change log
Verify this pull request
This change added tests and can be verified as follows:
close #12665