Join Slack
Powered by
potentially foolish question: is there any way i c...
# prefect-getting-started
j
Jake
09/18/2023, 4:18 PM
potentially foolish question: is there any way i can run a prefect task fn outside of a flow /t ask run?
✅ 1
j
Jake Kaplan
09/18/2023, 4:23 PM
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
Jake
09/18/2023, 4:24 PM
im ooking to execute a task’s function w/o a flow foo.fn(…) outside of flow
j
Jake Kaplan
09/18/2023, 4:24 PM
Copy code
@task def my_task(): print(1) my_task.fn()
you have it right ^ that should work
👍 1
2
Views
Open in Slack
Previous
Next