Alex Lopes
09/19/2019, 1:32 PMZachary Hughes
09/19/2019, 1:36 PM.run()
method, so it's good for quick and dirty tasks. If you want to do something more in-depth or customizable, that's generally when you'd want to subclass. Does that make sense?emre
09/19/2019, 1:42 PMTask
__init__()
call, I keep them out of the flow, while still utilizing their values.
If I instead provided them with .run()
, they wolud show up as Constant
tasks, creating visual clutter in logs.Alex Lopes
09/19/2019, 1:43 PMJerry Thomas
09/20/2019, 5:06 AM__init__()
of a task is executed before the flow actually runs?emre
09/20/2019, 6:16 AMTask()
, doesn’t even need to be in the flow
. Prefect Tasks .run()
, however, is delayed for execution until flow.run()
happens and the tasks upstream dependencies are met.