I need my parent decorator (Pipeline) to return a list of all invocations of child decorators (Task). For example, in this code:
@Pipeline
def my_pipeline():
@Task
def task_A:
return "A"
@Task
def task_B:
return "B"
def non_task:
return "C"
my_pipeline() # should return ["A", "B"].
Should return [“A”, “B”].
Is it possible with decorators, and if so, how can I do that?