lively-lunch-9285
11/10/2023, 10:36 PM@pipeline (ClearML and ZenML) @workflow (Union ai), @graph (Dagster) etc.
Possible advantages:
⢠fewer classes (mostly joking),
⢠I guess you could technically share steps between DAGs since they are simply importable functions. Hard to import a single step out of your flow if it's embedded into a class.
⢠kind of feels more intuitive. I tend to reason about a DAG as a series of steps. In a sense, it's weird to have that sequence of steps contained in a class.flaky-plumber-70709
11/10/2023, 10:52 PM@flow decorator:
https://docs.prefect.io/2.14.3/concepts/flows/lively-lunch-9285
11/10/2023, 10:55 PMflaky-plumber-70709
11/10/2023, 11:00 PMlively-lunch-9285
11/10/2023, 11:01 PMlively-lunch-9285
11/10/2023, 11:02 PMflaky-plumber-70709
11/10/2023, 11:04 PMflaky-plumber-70709
11/10/2023, 11:05 PMflaky-plumber-70709
11/10/2023, 11:20 PMif __name__='main' is going to be completely foreign + needs explanation of python internals earlier than necessary)flaky-plumber-70709
11/10/2023, 11:22 PMlively-lunch-9285
11/10/2023, 11:44 PMlively-lunch-9285
11/10/2023, 11:45 PMflaky-plumber-70709
11/10/2023, 11:53 PMflaky-plumber-70709
11/10/2023, 11:54 PMlively-lunch-9285
11/10/2023, 11:56 PMlively-lunch-9285
11/10/2023, 11:56 PMlively-lunch-9285
11/10/2023, 11:57 PMflaky-plumber-70709
11/10/2023, 11:58 PMflaky-plumber-70709
11/10/2023, 11:59 PMlively-lunch-9285
11/11/2023, 12:00 AMflaky-plumber-70709
11/11/2023, 12:02 AMflaky-plumber-70709
11/11/2023, 12:02 AMlively-lunch-9285
11/11/2023, 12:03 AMlively-lunch-9285
11/11/2023, 12:03 AMflaky-plumber-70709
11/11/2023, 12:06 AMvictorious-lawyer-58417
11/11/2023, 9:33 PMFlowSpec class on the fly.victorious-lawyer-58417
11/11/2023, 9:36 PMflaky-plumber-70709
11/11/2023, 9:41 PMYou can construct a FlowSpec class on the fly.?flaky-plumber-70709
11/11/2023, 9:43 PMFlowSpec and implement __call__?flaky-plumber-70709
11/11/2023, 9:58 PMworried-mechanic-36312
11/11/2023, 10:59 PMflaky-plumber-70709
11/11/2023, 11:26 PMflaky-plumber-70709
11/11/2023, 11:29 PMvictorious-lawyer-58417
11/12/2023, 12:06 AMFlowSpec class on the fly, similar to @pipeline or @graphworried-mechanic-36312
11/12/2023, 5:07 PMlively-lunch-9285
12/19/2023, 7:38 PMlively-lunch-9285
12/19/2023, 7:41 PMif x > 10:
self.next(step)
else:
self.next(other_step)
The reason I thought this was impossible was because this would make the DAG shape unknown until runtime so you probably couldn't deploy to something like argo workflows or aws step functionslively-lunch-9285
12/19/2023, 7:42 PM@pipeline decorator is that it supports this dynamic-ness. That said, I don't know that that's a limitation that would ever really matter haha. This all feels academic.flaky-plumber-70709
12/19/2023, 7:53 PM