https://prefect.io logo
Title
w

William Durksen

04/29/2022, 2:19 PM
šŸ‘‹ Hello, team! I just signed on and hope to find answers for accessing task results.
šŸ‘‹ 3
c

Chris Reuter

04/29/2022, 2:33 PM
Welcome to the Prefect community šŸ‘‹
w

William Durksen

04/29/2022, 2:55 PM
Thanks.
a

Anna Geller

04/29/2022, 3:08 PM
Welcome to Prefect, @William Durksen! Just catching up on Slack and Discourse - have you already posted your question about task run results somewhere?
w

William Durksen

04/29/2022, 3:28 PM
Hi Anna, No, I'm doing 2 things at once, but I first want to have a look at the resources.
šŸ‘ 1
I found out that if I just run an imperatively-defined prefect task by calling its run() method, I can avoid all the flow paraphernalia. That leaves me with a different problem, which is how to manage the input parameters (and results). They should be hidden in the flow and not mess up the Action instances. Actions are my addition.
a

Anna Geller

04/29/2022, 7:47 PM
I had to google what is "paraphernalia" šŸ˜‚ TMYK! generally speaking, if you are just getting started with Prefect, it's easier if you start directly with Prefect 2.0. Orion is able to run arbitrary Python code, so you may just use the flow decorator for your workflow and altogether avoid all the DAG-"paraphernalia" šŸ™‚ if you need some resources about that, check those: • https://discourse.prefect.io/t/should-i-start-with-prefect-2-0-orion-skipping-prefect-1-0/544 • https://orion-docs.prefect.io/getting-started/overview/
how to manage the input parameters (and results)
for parameters, I wrote a detailed post here for 1.0 and for Results you may check https://docs.prefect.io/core/concepts/results.html