Rhys Mansal
04/05/2022, 9:29 PMAn error occurred (ClientException) when calling the RegisterTaskDefinition operation: Invalid setting for container 'flow'. At least one of 'memory' or 'memoryReservation' must be specified.
I have set memory (and cpu) in the ECSRun task_definition (both quoted and unquoted) and still get this error. Does anyone know what I might try?Kevin Kho
04/05/2022, 9:31 PMAnna Geller
04/05/2022, 9:34 PMRhys Mansal
04/05/2022, 9:36 PMKevin Kho
04/05/2022, 9:37 PMRhys Mansal
04/05/2022, 9:40 PMwith Flow("flow-name",
state_handlers=[run_name_ts],
storage=Module("scheduling.flows"),
run_config=ECSRun(
task_definition={
'containerDefinitions': [
{
'name': 'flow',
'image': '<http://some-string.amazonaws.com/container:0.1.0|some-string.amazonaws.com/container:0.1.0>'
}
]
},
memory=512,
cpu=256,
labels=["dev", "other-string"])) as flow:
Kevin Kho
04/05/2022, 9:42 PMimage
to ECSRun and you should be good. Prefect makes that flow container by default anywayRhys Mansal
04/05/2022, 9:43 PM