Closed BianYuan1995 closed 1 year ago
@BianYuan1995 I think to better debug it, you need to add a log after addOrUpdateWorkflow. Also does these tasks run in parallel ? If yes, what is the parallelism used?
Thanks for your reply, now I have added the log after addOrUpdateWorkflow, but I wasn't able to reproduce the issue again. I think the tasks are not parallel, but sequential, I have a thread that will generate the tasks, write the task information to the channel, and another thread will read the tasks in the channel to perform the actions related to the rule engine.
Hi @BianYuan1995 , I will be closing this issue since we are not able to reproduce it. Feel free to reopen this in case you face this issue again.
I have a program that is used in a production environment. His working principle is to first get the item information to do rule matching, if the match fails, automatically generate a new rule, and then update the rule by AddOrUpdateWorkflow(workflow). Now the problem is that Task 4 generates AutoRule-6, Task 6 has the same model name information as Task 4, but Task 6 fails to match and creates AutoRule-7 with the same expression as AutoRule-6, but the other tasks after it can match AutoRule-6 correctly.
Task4 log info
take6 log info
method BulidRule
method RunEnginseAsync
So, is it possible that AddOrUpdateWorkflow has a problem with delayed effect of rules?