shazard
04/09/2020, 2:28 PMjosh
04/09/2020, 3:22 PMsetup function would either find/create your EC2 instance w/ the amount of GPU resources you would need and then the execute function would execute your flow using those resources.
We welcome any contributions back to the engine if you happen to develop a GPU-based execution environment that others could also use 🙂josh
04/09/2020, 3:26 PMFargateTaskEnvironment that the setup step creates the task definition and the execute step runs the task (in your case it may be an EC2 instance).
https://github.com/PrefectHQ/prefect/blob/master/src/prefect/environments/execution/fargate/fargate_task.pyshazard
04/09/2020, 3:29 PMJoe Schmid
04/09/2020, 9:47 PMJoe Schmid
04/09/2020, 9:48 PMshazard
04/10/2020, 6:06 AM