Jack Sundberg
07/27/2022, 3:52 PMTaylor Curran
07/27/2022, 4:21 PM.submit()
. We are currently writing the documentation for this and appreciate your patience during this busy time. 😊Jack Sundberg
07/27/2022, 4:26 PMKhuyen Tran
07/27/2022, 4:51 PMKhuyen Tran
07/27/2022, 4:53 PMPrefectFuture
, add .submit()
to your task call.
@task
def add_one(x):
return x + 1
@flow
def my_flow():
future = add_one.submit(1) # return PrefectFuture
Taylor Curran
07/27/2022, 5:11 PMresult = subflow() # int
state = subflow(return_state=True) # Prefect State
Jack Sundberg
07/27/2022, 5:36 PMJai P
07/27/2022, 6:36 PMsubflow(return_state=True)
will return a PrefectFuture
? or a State
? i could also be misunderstanding the relationship between the twoKhuyen Tran
07/27/2022, 7:24 PMsubflow(return_state=True)
will return a State
Khuyen Tran
07/27/2022, 7:25 PM