-
Notifications
You must be signed in to change notification settings - Fork 510
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
Python as Scripting language for inline task #204
Conversation
Hi @saksham2105 |
@sauronmesh yes. I am using "evaluatorType": "python". |
Hey @izrail-p no my ques is are you using jython or graal? |
I think right now there is no such thing to support python as inline task |
@saksham2105 I am using Jython. |
imo it should be json serialized object and the object can have list or any other collection |
|
I am not 100% About how to cast list and other data structure to jython PyObject |
Are you looking into this to support of returning dictionary or a list from the inline python task ? Or is there any roadblock here?, since it is quite common usecase to return a dictionary from the inline script. |
Pull Request type
NOTE: Please remember to run
./gradlew spotlessApply
to fix any format violations.Changes in this PR
Added Support for Python as scripting language for inline task using Jython library. Along with this there is a restriction for import keywords and various inbuilt functions for safety constraints. Added support for variable replacements for Simple ,Nested JSON types usin
$.variable.variable2....
etc. Along with the Script expression ininputs
map. We also have to add one more field in map namedoutputIdentifier: something
Use of
outputIdentifier
Sample code :-
In this case we will keep
outputIdentifier: "sum"
because this is the way we extract result of our Python code from Java using below snippet.Roadmap : https://github.com/conductor-oss/conductor/blob/main/ROADMAP.md
Describe the new behavior from this PR, and why it's needed
Issue #
New feature in OSS roadmap
Alternatives considered
We can also use
GraalPy
but it is super complex to setupDescribe alternative implementation you have considered