You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The task dependency example in the ControlFlow documentation under the "Hello, tasks" section isn't functioning as expected. Here are the issues:
When Running the Example Code as Provided:
importcontrolflowascffrompydanticimportBaseModelclassName(BaseModel):
first: strlast: strname=cf.Task("Get the user's name", user_access=True, result_type=Name)
poem=cf.Task("Write a personalized poem", context=dict(name=name))
poem.run()
Outcome : The process hangs indefinitely, requiring a manual interrupt.
When Running the Tasks Explicitly in Sequence:
I'm not sure if this is the correct way to run these outside of a flow...
name.run()
poem.run()
Outcome : The name task runs successfully, but the poem task throws an error:
RuntimeError: dictionary changed size during iteration
This contradicts the docs, which state:
"ControlFlow will automatically run any dependencies before executing the task you requested. In the above example, we only ran the poem task, but ControlFlow automatically ran the name task first, then passed its result to the poem task's context. We can see that both tasks were successfully completed and have result values."
Environment:
ControlFlow version : 0.8.1
Python version : 3.12.2
Prefect version : 3.0.0rc9
The text was updated successfully, but these errors were encountered:
The task dependency example in the ControlFlow documentation under the "Hello, tasks" section isn't functioning as expected. Here are the issues:
When Running the Example Code as Provided:
Outcome : The process hangs indefinitely, requiring a manual interrupt.
When Running the Tasks Explicitly in Sequence:
I'm not sure if this is the correct way to run these outside of a flow...
Outcome : The
name
task runs successfully, but thepoem
task throws an error:This contradicts the docs, which state:
Environment:
ControlFlow version : 0.8.1
Python version : 3.12.2
Prefect version : 3.0.0rc9
The text was updated successfully, but these errors were encountered: