conductor icon indicating copy to clipboard operation
conductor copied to clipboard

Nested Decision Task in Fork-Join Task,conductor cannot run the task after the decision task

Open dechykong opened this issue 8 years ago • 4 comments

conductor cannot run the task(API6) after the decision task(API4)。

Nested Decision Task  in Fork-Join Task

I'm confuse that whether the conductor support the workflow definition like this. here's the workflow json:

{
    "updateTime":1531196677024,
    "name":"test-joinAndDecision",
    "description":"test-joinAndDecision",
    "version":0,
    "tasks":[
        {
            "name":"task_0",
            "taskReferenceName":"fork_join",
            "type":"FORK_JOIN",
            "forkTasks":[
                [
                    {
                        "name":"task_1",
                        "taskReferenceName":"API1",
                        "inputParameters":{
                          
                        },
                        "type":"HTTP",
                        "startDelay":0
                    },
                    {
                        "name":"task_3",
                        "taskReferenceName":"decision",
                        "inputParameters":{
                            "case_value_param":"four"
                        },
                        "type":"DECISION",
                        "caseValueParam":"case_value_param",
                        "decisionCases":{
                            "four":[
                                {
                                    "name":"task_4",
                                    "taskReferenceName":"API4",
                                    "inputParameters":{                                      
                                    },
                                    "type":"HTTP",
                                    "startDelay":0
                                }
                            ],
                            "five":[
                                {
                                    "name":"task_5",
                                    "taskReferenceName":"API5",
                                    "inputParameters":{
                                        
                                    },
                                    "type":"HTTP",
                                    "startDelay":0
                                }
                            ]
                        },
                        "startDelay":0
                    },
                    {
                        "name":"task_8",
                        "taskReferenceName":"API6",
                        "type":"EVENT",
                        "startDelay":0,
                        "sink":"conductor"
                    }
                ],
                [
                    {
                        "name":"task_2",
                        "taskReferenceName":"API2",
                        "inputParameters":{
                            
                        },
                        "type":"HTTP",
                        "startDelay":0
                    }
                ]
            ],
            "startDelay":0
        },
        {
            "name":"task_7",
            "taskReferenceName":"join",
            "type":"JOIN",
            "startDelay":0,
            "joinOn":[
                "API6",
                "API2"
            ]
        }
    ],
    "schemaVersion":2
}

dechykong avatar Jul 10 '18 14:07 dechykong

I debug the code,this seems like a bug,API4 next task is always join task,API6 is lost. Because I don't kown which task will be schedule after decision-task,I add a API6 to wait for it. Finally join the API6 and API2.The result confuse me,API6 is lost,will never be schedule.

dechykong avatar Jul 11 '18 23:07 dechykong

Can you please let me know how did you load the workflow DSL json to be instantiated by conductor? Also how did u register your tasks?

dileepkeely avatar Aug 04 '18 17:08 dileepkeely

It sounds like this may be the same issue as https://github.com/Netflix/conductor/issues/881

kyle-c9000 avatar May 02 '19 20:05 kyle-c9000

Fixed as part of #1449

apanicker-nflx avatar Dec 24 '19 00:12 apanicker-nflx