Danny Vilela
12/17/2021, 10:58 PMlocation
or task target
? I know the Prefect context gives you a bunch of variables – notably including parameters
, which looks promising! – but what if we have some data (the strings "foo"
or "bar"
) computed by some task compute_foo_or_bar
and we’d like to reference that output in a subsequent task’s output target?Danny Vilela
12/17/2021, 11:08 PMdir
until you run some task compute_local_result_dir
as my_dir = compute_local_result_dir()
, where my_dir
is one of "foo"
, "bar"
, or "baz"
. In downstream tasks you’d want to use that LocalResult(dir=my_dir)
, but you don’t know which one prior to running the task.Danny Vilela
12/17/2021, 11:50 PM@task
utility and start using class-based tasks? Otherwise you get into some really funky business with @task
-decorated tasks yielding a parameterized @task
.Kevin Kho
Kevin Kho