method, but these tasks are written using the task decorator only.
Copy code
@task
def parent():
@task
def child():
What are the best next steps?
k
Kevin Kho
08/06/2021, 1:15 AM
Hey @Fina Silva-Santisteban, not quite sure what you are asking. Is it adding a trigger to the decorator?
You can do
@task(trigger=...)
👌 1
f
Fina Silva-Santisteban
08/06/2021, 4:23 PM
Hi @Kevin Kho! Sorry for phrasing it confusingly! Yes that’s what I meant. I hadn’t seen a code snippet of a task using the task decorator use a trigger so I wasn’t sure how that was done. Sorry I should have just checked the task decorator function defined inside the prefect codebase to see how that works, the docstrings make things quite clear 😅
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.