Channels
pacc-july-11-12-2023
pacc-sept-20-21-2023
pacc-aug-16-2023
pacc-aug-29-30-2023
pacc-may-31-2023
prefect-ai
pacc-clearcover-june-12-2023
pacc-july-6-2023
intros-test
livestream-chatter
marvin-in-the-wild
data-ecosystem
geo-israel
pacc-june-14-2023
geo-japan
pacc-london-2023
pacc-sept-13-14-2023
prefect-cloud
ppcc-may-16-2023
prefect-azure
prefect-docker
prefect-recipes
gratitude
geo-nyc
geo-bay-area
geo-boston
geo-london
geo-dc
geo-chicago
geo-berlin
geo-texas
geo-seattle
geo-colorado
pacc-july-17-18-2023
introductions
prefect-server
data-tricks-and-tips
prefect-aws
prefect-gcp
find-a-prefect-job
prefect-dbt
random
events
ask-marvin
show-us-what-you-got
prefect-getting-started
prefect-integrations
prefect-contributors
best-practices-coordination-plane
announcements
prefect-ui
prefect-kubernetes
pacc-aug-22-23-2023
prefect-community
Powered by
#prefect-getting-started
Title
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
Post