Viktor
09/17/2024, 7:30 PMViktor
09/17/2024, 7:32 PMInvalidDecoratorException: Function: raw_urls_multiline has a first parameter that is not a dependency. @pipe requires the parameter names to match the function parameters. Thus it might not be compatible with some other decoratorsViktor
09/17/2024, 7:32 PM@subdag(
textwidget_store,
inputs = {"textwidget_location": source("important_urls_location")},
config = {}
)
@pipe(
step(_multiline_cleaning)
)
def raw_urls_multiline(textwidget_load: str) -> str:
...Viktor
09/17/2024, 7:34 PMElijah Ben Izzy
09/17/2024, 8:14 PMsubag run
2. Pass in the result of a pipe command from subdag
The problem is that the subdag parameter gets passed from the resulting DAG. pipe also expects to pass it in so there’s a conflict. I’d make the pipe part of the subdag, which (IMO) clarifies it a bit.Viktor
09/17/2024, 10:07 PMViktor
09/17/2024, 10:09 PM