cadl opened a new pull request, #10258:
URL: https://github.com/apache/dolphinscheduler/pull/10258

   <!--Thanks very much for contributing to Apache DolphinScheduler. Please 
review 
https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html
 before opening a pull request.-->
   
   
   ## Purpose of the pull request
   
   I found the `SERIAL_DISCARD` execution_type always stops the process 
instance, even if there were no running process instances.
   
   After diving into the code, It seems like some logic error. Before the fix, 
the ProcessServiceImpl will stop the current process_instance, if 
running_instances is empty.
   
   Now make some fixes, if running_instances is not empty, mark the current 
process_instance as stop (discard it). if running_instances is empty, submit 
the current process_instance.
   
   <!--(For example: This pull request adds checkstyle plugin).-->
   
   ## Brief change log
   fix SERIAL_DISCARD not working
   <!--*(for example:)*
     - *Add maven-checkstyle-plugin to root pom.xml*
   -->
   ## Verify this pull request
   


-- 
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]

Reply via email to