You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2022/11/02 08:33:50 UTC
[GitHub] [dolphinscheduler] qianli2022 opened a new issue, #12665: [Feature][Api] When use api to run a process we want get processInstanceId
qianli2022 opened a new issue, #12665:
URL: https://github.com/apache/dolphinscheduler/issues/12665
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description
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.There are two solutions.
One is to generate a preprocessInstance. This record is generated when the api is triggered, and the processInstanceId can be returned directly
Second is to generate a processInstanceCode when triggering, add this field when actually generating a processInstance, and use the processInstanceCode to track the status later.
The first one is a little bigger change than before. The second is need add an index to the code. This field is also required the automatic scheduling added, because it is the unique index field.
### Use case
_No response_
### Related issues
_No response_
### Are you willing to submit a PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] qianli2022 commented on issue #12665: [Feature][Api] When use api to run a process we want get processInstanceId
Posted by GitBox <gi...@apache.org>.
qianli2022 commented on issue #12665:
URL: https://github.com/apache/dolphinscheduler/issues/12665#issuecomment-1345899525
CREATE TABLE `t_ds_trigger_relation` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`trigger_type` int(11) NOT NULL DEFAULT '0' COMMENT '0 process 1 task',
`trigger_code` bigint(20) NOT NULL,
`job_id` bigint(20) NOT NULL,
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `t_ds_trigger_relation_trigger_code_IDX` (`trigger_code`),
UNIQUE KEY `t_ds_trigger_relation_UN` (`trigger_type`,`trigger_code`,`job_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
A new table structure has been added to support various process operations triggered by the API, including single and batch operations
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #12665: [Feature][Api] When use api to run a process we want get processInstanceId
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #12665:
URL: https://github.com/apache/dolphinscheduler/issues/12665#issuecomment-1299819953
Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
* In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
* If you haven't received a reply for a long time, you can [join our slack](https://s.apache.org/dolphinscheduler-slack) and send your question to channel `#troubleshooting`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] caishunfeng closed issue #12665: [Feature][Api] When use api to run a process we want get processInstanceId
Posted by GitBox <gi...@apache.org>.
caishunfeng closed issue #12665: [Feature][Api] When use api to run a process we want get processInstanceId
URL: https://github.com/apache/dolphinscheduler/issues/12665
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org