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
{{ message }}
This repository was archived by the owner on Aug 22, 2025. It is now read-only.
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()