potentially foolish question: is there any way i c...
# prefect-getting-started
j
potentially foolish question: is there any way i can run a prefect task fn outside of a flow /t ask run?
1
j
If I'm understanding right, you're looking to execute the wrapped function by itself? Or you're looking to execute a task w/o a flow?
j
im ooking to execute a task’s function w/o a flow foo.fn(…) outside of flow
j
Copy code
@task
def my_task():
    print(1)
    
my_task.fn()
you have it right ^ that should work
👍 1