Nikola Lusic
05/28/2021, 2:18 PMECSRun
configuration be ran in a threaded mode, similar how LocalDaskExecutor
has the scheduled=threads
configuration?Nikola Lusic
05/28/2021, 2:20 PMmap
functionality of a Prefect task
in order to have multiple tasks executed in parallel.Kevin Kho
LocalDaskExecutor
with ECSRun
, but if this is a follow up from yesterday, this might be because you’re still getting 1 cpu?Nikola Lusic
05/28/2021, 2:26 PMLocalDaskExecutor
with ECSRun
.
Regarding the CPU/memory question from yesterday - I've tried running a task and logging the CPU/RAM available from within the task via script, but it seems it returns the physical infrastructure properties of the AWS machine it's running on - not the limits of the Docker container (for example the task definition had 1CPU/2GB RAM, and the output showed it had 2 CPU/8GB RAM - this is without me trying to override any configuration).
I've managed to find a workaround by specifying the cpu and memory in task definition, and using that one instead of the default one (the task definition in AWS ECS now shows to correct CPU/RAM). However, I would want to try to avoid creating specific task definitions.Nikola Lusic
05/28/2021, 2:27 PMNikola Lusic
05/28/2021, 2:53 PMLocalDaskExecutor
to my flow configuration, that has the ECSRun
run configuration already, and now the resource allocation works - ECS tasks have 2CPU/4GB as I set in the ECSRun
parameters.
I was not aware that setting the executor might affect this behaviour, but the good news is - it works now (as well as the threaded execution) 🙂Kevin Kho