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

   - 1. add ```workflow.submit.max.times=10 ``` in common.properties
   - 2. add parameter ``` private AtomicInteger maxSubmitTimes;``` in class of 
WorkflowEvent 
   - 3. when workflowSubmitStatue is fail , decrement ``` decrement```
   - 4 when ```maxSubmitTimes``` equal 0 change processInstance's status to 
fail and update to DB
   - 5.get ``` WorkflowExecuteRunnable``` from 
```processInstanceExecCacheManager ``` by  ``` processInstanceId```
   - 6. add a special ```stateEvent ```, add update the method of 
```handleEvents``` .when get the ```stateEvent``` will throw a Exception
   - 7.when WorkflowExecuteRunnable is fail will call the method ``` 
onFailure``` that notify parentProcessInstance


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