cadl opened a new issue, #10288: URL: https://github.com/apache/dolphinscheduler/issues/10288
### 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 Now SERIAL_WAIT/SERIAL_DISCARD/SERIAL_PRIORITY only work on the same version process instances(query via `queryByProcessDefineCodeAndProcessDefinitionVersionAndStatusAndNextId` at [ProcessServiceImpl.java](https://github.com/apache/dolphinscheduler/blob/13af2adfc150e6e16ce07c5d1abeeb25f9cd9340/dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessServiceImpl.java#L321)) In some cases, the process definition updating and running are independent. Maybe want the process definition run serially, instead of a specific version. ### Use case Maybe we can add one configuration `serial_scope` to control the scope of `SERIAL_WAIT/SERIAL_DISCARD/SERIAL_PRIORITY`? If the value is `process_definition_version`, the process instances with the same version are executed serially. If the value is `process_definition`, all process instance is executed serially. ### 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
