https://prefect.io logo
c

Chris White

09/19/2019, 6:24 PM
All of the keyword arguments that you can pass to the task decorator are the same as the initialization keyword arguments for a Task class, so:
Copy code
@task(cache_for=...)
is the same thing as
Copy code
my_task = Task(cache_for=...)
(where Task here is whatever actual task class you’re creating)