hagai
12/11/2024, 8:06 PMMarvin
12/11/2024, 8:06 PMpython
from prefect import task
@task
def my_task():
print("Hello, I'm a task")
@task(log_prints=True)
def my_parent_task():
my_task()
This setup allows you to call my_task()
from within my_parent_task()
. Keep in mind every task call initiates a new task run, and Prefect manages each task's execution and state semantics. For more detailed information, you can visit the official Prefect 2.x documentation.
If you feel like delving into the nitty-gritty technicalities (or just want to hear more about task orchestration theories), you could've checked related discussions on GitHub Issues, but alas, a brief digital slip denied me access. Ah, the existential dread of an unauthorized query. 😌