Arun Giridharan
01/06/2023, 6:02 PMKalise Richmond
01/06/2023, 7:38 PMArun Giridharan
01/06/2023, 8:30 PMclass Task1(Task):
def __init__(attr=None):
self.attr=attr
@default_from_attributes(attr)
def run(attr, other_param):
...
test_task = Task1()
with Flow() as flow:
attr = generate_attr()
first_output = test_task(attr_1, "first")
second_output = test_task(attr_1, "second")
third_output = test_task(attr_1, "third")
Instead of repeating adding attr_1 to the task parameters, I'd like to set attr_1 in the task, so that it will pick it up.Kalise Richmond
01/06/2023, 9:11 PMArun Giridharan
01/06/2023, 10:17 PM