dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[BUG] The working flow direction between nodes is not in the direction specified by the arrow

Open 1445103710 opened this issue 6 years ago • 6 comments

*For better global communication, please give priority to using English description, thx! *

Describe the bug A clear and concise description of what the bug is. The working flow direction between nodes is not in the direction specified by the arrow To Reproduce Steps to reproduce the behavior, for example:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

image image image image

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Which version of Dolphin Scheduler: -[dev]

Additional context Add any other context about the problem here.

**Requirement or improvement

  • Please describe about your requirements or improvement suggestions.

1445103710 avatar Apr 24 '20 06:04 1445103710

I'm sorry I can't understand the problem

davidzollo avatar Apr 24 '20 06:04 davidzollo

I'm sorry I can't understand the problem

image in dev 我想从第一个节点开始运行,向后执行,按照流程应该再执行后面2,3两个节点,但是在运行实例中可以看到,此次运行只运行了第一个节点。 I want to start from the first node and execute backward. According to the process, I should execute the next 2 or 3 nodes. However, in the running instance, we can see that this running only runs the first node.

1445103710 avatar Apr 24 '20 07:04 1445103710

look this dag image Why mysql can be the first to execute? image

1445103710 avatar Apr 24 '20 07:04 1445103710

@dailidong

1445103710 avatar Apr 24 '20 07:04 1445103710

{
	"globalParams": [{
		"prop": "yaoyao",
		"direct": "IN",
		"type": "VARCHAR",
		"value": "111"
	}],
	"tasks": [{
		"type": "SHELL",
		"id": "tasks-79944",
		"name": "测试shell命令",
		"params": {
			"resourceList": [],
			"localParams": [],
			"rawScript": "echo 1111"
		},
		"description": "",
		"runFlag": "NORMAL",
		"conditionResult": {
			"successNode": [""],
			"failedNode": [""]
		},
		"dependence": {},
		"maxRetryTimes": "0",
		"retryInterval": "1",
		"timeout": {
			"strategy": "",
			"interval": null,
			"enable": false
		},
		"taskInstancePriority": "MEDIUM",
		"workerGroup": "default",
		"preTasks": []
	}, {
		"type": "PYTHON",
		"id": "tasks-20302",
		"name": "测试python",
		"params": {
			"resourceList": [],
			"localParams": [],
			"rawScript": "print(222)"
		},
		"description": "",
		"runFlag": "NORMAL",
		"conditionResult": {
			"successNode": [""],
			"failedNode": [""]
		},
		"dependence": {},
		"maxRetryTimes": "0",
		"retryInterval": "1",
		"timeout": {
			"strategy": "",
			"interval": null,
			"enable": false
		},
		"taskInstancePriority": "MEDIUM",
		"workerGroup": "default",
		"preTasks": ["测试shell命令"]
	}, {
		"type": "HTTP",
		"id": "tasks-23734",
		"name": "测试http",
		"params": {
			"localParams": [],
			"httpParams": [],
			"url": "http://www.baidu.com",
			"httpMethod": "GET",
			"httpCheckCondition": "STATUS_CODE_DEFAULT",
			"condition": ""
		},
		"description": "",
		"runFlag": "NORMAL",
		"conditionResult": {
			"successNode": [""],
			"failedNode": [""]
		},
		"dependence": {},
		"maxRetryTimes": "0",
		"retryInterval": "1",
		"timeout": {
			"strategy": "",
			"interval": null,
			"enable": false
		},
		"taskInstancePriority": "MEDIUM",
		"workerGroup": "default",
		"preTasks": ["测试python"]
	}, {
		"type": "SHELL",
		"id": "tasks-36312",
		"name": "打印图形",
		"params": {
			"resourceList": [{
				"id": 2,
				"name": "three.sh",
				"res": "test/three.sh"
			}],
			"localParams": [],
			"rawScript": "sh test/three.sh"
		},
		"description": "",
		"runFlag": "NORMAL",
		"conditionResult": {
			"successNode": [""],
			"failedNode": [""]
		},
		"dependence": {},
		"maxRetryTimes": "0",
		"retryInterval": "1",
		"timeout": {
			"strategy": "",
			"interval": null,
			"enable": false
		},
		"taskInstancePriority": "MEDIUM",
		"workerGroup": "default",
		"preTasks": ["测试http"]
	}, {
		"type": "SQL",
		"id": "tasks-90358",
		"name": "mysql",
		"params": {
			"type": "MYSQL",
			"datasource": 2,
			"sql": "select * from market_gold LIMIT 1",
			"udfs": "",
			"sqlType": "0",
			"title": "111",
			"receivers": "[email protected]",
			"receiversCc": "",
			"showType": "TABLE",
			"localParams": [],
			"connParams": "",
			"preStatements": [],
			"postStatements": []
		},
		"description": "",
		"runFlag": "NORMAL",
		"conditionResult": {
			"successNode": [""],
			"failedNode": [""]
		},
		"dependence": {},
		"maxRetryTimes": "0",
		"retryInterval": "1",
		"timeout": {
			"strategy": "",
			"interval": null,
			"enable": false
		},
		"taskInstancePriority": "MEDIUM",
		"workerGroup": "default",
		"preTasks": []
	}],
	"tenantId": 1,
	"timeout": 0
}

we can see ,when we save Dag the mysql preTasks is empty.

1445103710 avatar Apr 24 '20 08:04 1445103710

sorry for reply late https://github.com/apache/incubator-dolphinscheduler/issues/3058 show the detail info and PR https://github.com/apache/incubator-dolphinscheduler/pull/3484 solved this problem

BTW , DolphinScheduler version >= 1.3.2 solved this issue

davidzollo avatar Nov 16 '20 10:11 davidzollo