fresh-wall-61998
06/28/2023, 12:53 AMcurved-island-17262
06/28/2023, 3:49 AMbatch either with:
python flow.py --environment=conda --with batch --with retry step-functions create
Or by adding the @batch decorator to all the relevant steps?fresh-wall-61998
06/28/2023, 6:53 AM@batch decoratorcurved-island-17262
06/28/2023, 6:59 AM@batch has a default of 4GB memory and 1VCPU.fresh-wall-61998
06/28/2023, 7:12 AM@batch(
cpu=64,
memory=512_000,
gpu=0,
)curved-island-17262
06/28/2023, 7:12 AMfresh-wall-61998
06/28/2023, 7:17 AMcurved-island-17262
06/28/2023, 7:17 AMfresh-wall-61998
06/28/2023, 7:22 AM1000000 .wooden-dusk-90720
06/28/2023, 7:41 AMcurved-island-17262
06/28/2023, 8:09 AMfresh-wall-61998
07/15/2023, 1:57 AM@retry(times=0)
@timeout(minutes=1080)
@batch(
cpu=1,
memory=16_000,
gpu=0,
)
@environment(vars={"DISABLE_PARALLELISM": "0", "AWS_ROLE_SESSION_TIMEOUT": "3600"})
@step
def start(self):
self.is_train = False
print(self.configs)
self.config = merge_configs(self.configs)
run_steps("start", self)
self.next(self.load_train_data, self.load_test_data)
However, the flow is deployed to AWS step functions where it always ends up getting the default 4gb memory for the steps even though I've set it to be 16GB as shown aboveechoing-summer-46573
07/15/2023, 7:48 AMfresh-wall-61998
07/16/2023, 6:14 PMsquare-wire-39606
07/17/2023, 3:51 PMpython flow.py step-functions create --only-json for this flow for you?fresh-wall-61998
07/18/2023, 1:19 AM