fuchanghai commented on issue #16478:
URL: 
https://github.com/apache/dolphinscheduler/issues/16478#issuecomment-2295291032

   1. For each type, we can set a strategy. The first strategy is to ignore if 
it exists, and the second strategy is to delete first and then add to meet 
various scenarios.
   2. Add two labels to the pod according to the strategy type. If it is an 
ignore if it exists strategy, use taskCode as the label. If it is a delete 
first and then add strategy, use taskInstanceId.
   3. Delete the pod according to the label
   
   ```
   ObjectMeta.setLabel
   
   ```
   
   4. We can also use taskInstance to replace the user-defined pod name 
   ```
   ObjectMeta.setName
   ```
   5.Perhaps this issue can be targeted at a single pod, without considering 
multiple pods. In fact, if there are multiple pods in a node, we can give 
multiple pods a label with the value of processInstance, and obtain multiple 
pods through processInstance and obtain logs separately.
   
   @Gallardot  cc @EricGao888 @Mighten @SbloodyS  WDYT?


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