Jason
05/04/2022, 2:50 PM@task
def task_a():
common_class = Common(Secret())
output = common_class.task_a()
return output
@task
def task_b():
common_class = Common(Secret())
output = common_class.task_b()
return output
Kevin Kho
05/04/2022, 2:52 PMAnna Geller
05/04/2022, 3:56 PMJason
05/04/2022, 4:01 PMAnna Geller
05/04/2022, 4:18 PMPrefectSecret
tasks in their flows and pass the value of the secret to a downstream task (which may use classes inside that receive the input data from a task) - this would allow you to get the best of both worlds. LMK if you need an example