Hi, I was checking out `PythonTask` and `PythonFu...
# ask-the-community
b
Hi, I was checking out
PythonTask
and
PythonFunctionTask
documentation under
flytekit.extend
, and am unsure about what the difference between the 2 are. Specifically, what does it mean by
PythonTask
should be used for task types when there is no python function to be executed?
y
don’t worry about
PythonTask
I think what you’re looking of if
PythonInstanceTask
- take a look at the shell task for an example
b
Thanks! I looked through the documentation from both, and it seems that the difference between
PythonInstanceTask
and
PythonFunctionTask
is in their use case, where the former if we want to instantiate the task, and the latter if we want our task to be a decorator? Am I understanding this correctly?
y
the latter is for when you have a function.
things like a sql task or this shell task, there’s no python user code right?
so it doesn’t make sense to decorate anything
b
Ahh ok, I get it now, thanks!
150 Views