<@U04EATBG0E8> what is a task?
# ask-marvin
b
@ask-marvin what is a task?
a
Let me check that for you @Bianca Hoch
A task is a piece of work that you can schedule to run on
b
@ask-marvin how do I make a python function a task?
a
Let me check that for you @Bianca Hoch
You can do so by setting the value of the task.function_name attribute to a valid Python function.
b
@ask-marvin how do I make a python function a prefect task?
a
Let me check that for you @Bianca Hoch
You can configure your flow runs to use a task runner such as
prefect-run
to invoke your Python function. You can also use the
from prefect import task
statement to import your Python function into a Prefect task.