Is there a way to have tasks be submitted without calling .submit()
#10810
Unanswered
Andrew-S-Rosen
asked this question in
Q&A
Replies: 1 comment
-
Interesting idea! Please feel free to open a feature enhancement issue to share this idea with the team and track it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, if you want to submit a task to a
TaskRunner
, you have to call the.submit()
attribute of theTask
object. However, this relies the user to modify their underlying Python code, which seems to go against the basic principle behind Prefect. Are there alternate ways to do this?Current approach:
Note how this is different than the typical
add(add(1, 2), 3)
. When making aFlow
, this means that the workflow itself will have to be modified to make.submit()
calls for eachTask
.I was hoping there might be some way that I could have all tasks automatically submitted to the
TaskRunner
if specified via some kwarg in the@flow
decorator, but I didn't see such a mechanism.Beta Was this translation helpful? Give feedback.
All reactions