Jon
10/10/2022, 2:38 PMAttributeError: 'Parameter' object ...
. Why is the flow trying to run when I register it?Mason Menges
10/10/2022, 4:00 PMJon
10/10/2022, 4:01 PMMason Menges
10/10/2022, 4:07 PMJon
10/10/2022, 4:12 PMclass Example():
@task
def method_a():
...
@task
def method_b():
...
with Flow() as Flow:
with Example() as e:
e.method_a() # a task in the flow
e.method_b() # a task in the flow
that doc is to convert a function to a class. here i want to convert class methods to tasksclass Example():
def method_a():
...
def method_b():
...
@task
def run_example():
with Example() as e:
e.method_a() # not a task? lost in the ether
e.method_b() # also not a task, lost in the ether
with Flow() as Flow:
run_example() # task with a bunch of logic i've lost observability on
Zach Schuster
11/02/2022, 12:33 AMJon
11/02/2022, 12:58 PMZach Schuster
11/02/2022, 1:20 PM