Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [Python] Pass parameter from Python task to downstream did not work #15625

Open
3 tasks done
minlywang opened this issue Feb 23, 2024 · 0 comments
Open
3 tasks done
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@minlywang
Copy link

minlywang commented Feb 23, 2024

Search before asking

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

What happened

https://dolphinscheduler.apache.org/en-us/docs/3.2.0/guide/parameter/context
I have followed the instruction:
Pass parameter from Python task to downstream
Use print('${setValue(key=%s)}' % value), DolphinScheduler will capture the ${setValue(key=value} in the output to capture the parameters and pass them downstream.

value = "INSERT INTO test_user_sync (USERNAME_, NAME_) VALUES ('test-1', '演示用户'),('admin', '孙小');"
print('${setValue(key=%s)}' % value)

At the downstream shell task node:

echo ${key}
I can't get the parameter key

What you expected to happen

I want to get the parameter value at the downstream task of shell.

How to reproduce

Python Version: 3.6.8
DolphinSheduler version: 3.2.0 Standalone mode

Python:

value = "INSERT INTO test_user_sync (USERNAME_, NAME_) VALUES ('test-1', '演示用户'),('admin', '孙小');"
print('${setValue(key=%s)}' % value)

Shell:

echo ${key}

Anything else

No response

Version

3.2.x

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@minlywang minlywang added bug Something isn't working Waiting for reply Waiting for reply labels Feb 23, 2024
@SbloodyS SbloodyS added help wanted Extra attention is needed and removed Waiting for reply Waiting for reply labels Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants