Hey I have a Prefect2 scheduling query, is it poss...
# prefect-getting-started
s
Hey I have a Prefect2 scheduling query, is it possible to schedule individual `task`s on Workers? or only entire flows?
z
Hi @Sash Stasyk! At the moment it is only possible to schedule flows on workers but we’re exploring offering individual task scheduling. Would you be willing to share a little more about your use case for individual tasks?
s
Hey @Zach Angell, I would like to run CPU code (in a task) on a CPU node (worker) and a GPU code on a GPU node, all part of a single Flow
I could solve this Flow of Flows, but sadly that's not acceptable DevExp for us :(
👍 1
z
Is there anything we could improve about the DevEx for flows of flows that would allow you to use the pattern?
s
it's too much boiler plate with comparison to a potential
Copy code
@task(worker_queue="asd")
def stuff():
or even
Copy code
@task(image="<http://docker.com/my-image|docker.com/my-image>")
def stuff():