dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[Bug] [Module Name] The return result of the HTTP task cannot be obtained by the downstream task

Open zhaiang opened this issue 9 months ago • 2 comments

Search before asking

  • [x] I had searched in the issues and found no similar issues.

What happened

LOG-PATH]: /opt/dolphinscheduler/logs/20260304/167070721083360/17/13/40.log, [HOST]: 172.17.0.2:1234

2026-03-04 10:58:02.412 INFO - 🐬 Initialize Task Context

2026-03-04 10:58:02.414 INFO - Current tenant is default tenant, will use bootstrap user: root to execute the task

2026-03-04 10:58:02.414 INFO - TenantCode: root check successfully

2026-03-04 10:58:02.414 INFO - TaskInstance working directory: /tmp/dolphinscheduler/exec/process/40 create successfully

2026-03-04 10:58:02.414 INFO - Download resources successfully: ResourceContext(resourceItemMap={})

2026-03-04 10:58:02.415 INFO - 🐬 Load Task Instance Plugin

2026-03-04 10:58:02.415 INFO - Initialized physicalTask: SHELL successfully

2026-03-04 10:58:02.415 INFO - Initialize shell task params {

"localParams" : [ ],

"varPool" : [ ],

"rawScript" : "echo "预售保证金预警:${presell_getDepositContractWarn.response}"\r\necho "订单融保证金预警:${ddr_getDepositContractWarn.response}"\r\necho "订单融未入库预警:${getDdrNoInInventoryWarn.response}"",

"resourceList" : [ ]

}

2026-03-04 10:58:02.415 INFO - Set taskVarPool: null successfully

2026-03-04 10:58:02.415 INFO - 🐬 Execute Task Instance

2026-03-04 10:58:02.416 INFO - Final Script Content:

====================

#!/bin/bash

BASEDIR=$(cd dirname $0; pwd)

cd $BASEDIR

echo "预售保证金预警:${presell_getDepositContractWarn.response}"

echo "订单融保证金预警:${ddr_getDepositContractWarn.response}"

echo "订单融未入库预警:${getDdrNoInInventoryWarn.response}"

====================

2026-03-04 10:58:02.416 INFO - Executing shell command : sudo -u root -i /tmp/dolphinscheduler/exec/process/40/40.sh

2026-03-04 10:58:02.420 INFO - process start, process id is: 2800

2026-03-04 10:58:02.431 INFO - -> /tmp/dolphinscheduler/exec/process/40/40.sh: line 4: 预售保证金预警:${presell_getDepositContractWarn.response}: bad substitution

2026-03-04 10:58:02.432 INFO - -> /tmp/dolphinscheduler/exec/process/40/40.sh: line 5: 订单融保证金预警:${ddr_getDepositContractWarn.response}: bad substitution

2026-03-04 10:58:02.432 INFO - -> /tmp/dolphinscheduler/exec/process/40/40.sh: line 6: 订单融未入库预警:${getDdrNoInInventoryWarn.response}: bad substitution

What you expected to happen

获取不到上游http任务参数

How to reproduce

获取不到上游http任务参数

Anything else

获取不到上游http任务参数

Version

dev

Are you willing to submit PR?

  • [x] Yes I am willing to submit a PR!

Code of Conduct

zhaiang avatar Mar 04 '26 03:03 zhaiang

Search before asking

  • [x] I had searched in the issues and found no similar issues.

What happened

LOG-PATH]: /opt/dolphinscheduler/logs/20260304/167070721083360/17/13/40.log, [HOST]: 172.17.0.2:1234

2026-03-04 10:58:02.412 INFO - 🐬 Initialize Task Context

2026-03-04 10:58:02.414 INFO - Current tenant is default tenant, will use bootstrap user: root to execute the task

2026-03-04 10:58:02.414 INFO - TenantCode: root check successfully

2026-03-04 10:58:02.414 INFO - TaskInstance working directory: /tmp/dolphinscheduler/exec/process/40 create successfully

2026-03-04 10:58:02.414 INFO - Download resources successfully: ResourceContext(resourceItemMap={})

2026-03-04 10:58:02.415 INFO - 🐬 Load Task Instance Plugin

2026-03-04 10:58:02.415 INFO - Initialized physicalTask: SHELL successfully

2026-03-04 10:58:02.415 INFO - Initialize shell task params {

"localParams" : [ ],

"varPool" : [ ],

"rawScript" : "echo "预售保证金预警:${presell_getDepositContractWarn.response}"\r\necho "订单融保证金预警:${ddr_getDepositContractWarn.response}"\r\necho "订单融未入库预警:${getDdrNoInInventoryWarn.response}"",

"resourceList" : [ ]

}

2026-03-04 10:58:02.415 INFO - Set taskVarPool: null successfully

2026-03-04 10:58:02.415 INFO - 🐬 Execute Task Instance

2026-03-04 10:58:02.416 INFO - Final Script Content:

====================

#!/bin/bash

BASEDIR=$(cd dirname $0; pwd)

cd $BASEDIR

echo "预售保证金预警:${presell_getDepositContractWarn.response}"

echo "订单融保证金预警:${ddr_getDepositContractWarn.response}"

echo "订单融未入库预警:${getDdrNoInInventoryWarn.response}"

====================

2026-03-04 10:58:02.416 INFO - Executing shell command : sudo -u root -i /tmp/dolphinscheduler/exec/process/40/40.sh

2026-03-04 10:58:02.420 INFO - process start, process id is: 2800

2026-03-04 10:58:02.431 INFO - -> /tmp/dolphinscheduler/exec/process/40/40.sh: line 4: 预售保证金预警:${presell_getDepositContractWarn.response}: bad substitution

2026-03-04 10:58:02.432 INFO - -> /tmp/dolphinscheduler/exec/process/40/40.sh: line 5: 订单融保证金预警:${ddr_getDepositContractWarn.response}: bad substitution

2026-03-04 10:58:02.432 INFO - -> /tmp/dolphinscheduler/exec/process/40/40.sh: line 6: 订单融未入库预警:${getDdrNoInInventoryWarn.response}: bad substitution

What you expected to happen

获取不到上游http任务参数

How to reproduce

获取不到上游http任务参数

Anything else

获取不到上游http任务参数

Version

dev

Are you willing to submit PR?

  • [x] Yes I am willing to submit a PR!

Code of Conduct

github-actions avatar Mar 04 '26 03:03 github-actions

Http task plugin does not support parameter passing. You can refer to the docs in https://dolphinscheduler.apache.org/en-us/docs/3.4.0/guide/parameter/context

SbloodyS avatar Mar 04 '26 03:03 SbloodyS