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
When creating a task with the task decorator and calling that task inside a flow, if Prefect is configured correctly then this will create a Prefect flow and task. The inputs to the task in question though are not logged correctly. On the task page under task inputs for the example below it simply gives:
{
"topic": []
}
Whereas I would expect:
{
"topic": "roses"
}
Example Code
# In the terminal run:# `prefect server start`# `prefect config set PREFECT_API_URL=http://127.0.0.1:4200/api`importcontrolflowascf@cf.task()defwrite_poem(topic: str) ->str:
"""Write a poem about the topic"""@cf.flowdefdemo_flow():
returnwrite_poem(topic="roses")
if__name__=="__main__":
result=demo_flow()
Turns out I just misunderstood the Prefect functionality side of things. Task inputs only show task keys, not values. I was expecting it to show values, similar to this feature request PrefectHQ/prefect#11301
Description
When creating a task with the task decorator and calling that task inside a flow, if Prefect is configured correctly then this will create a Prefect flow and task. The inputs to the task in question though are not logged correctly. On the task page under task inputs for the example below it simply gives:
{ "topic": [] }
Whereas I would expect:
Example Code
Version Information
Additional Context
No response
The text was updated successfully, but these errors were encountered: