quick-lighter-52296
05/22/2023, 11:25 AMmflog 'Setting up task environment.' && python -m pip install awscli requests boto3 -qqq && ...
If my EC2 machine is overloaded with more than 30-40 tasks this step starts taking around 1 minute due to congested network. As you can imagine I am reluctant to pay an overhead of 1 minute when my total task runtime is <10s. Do you guys have any ideas on how I can avoid this install? We package all our application-level dependencies via a docker container, I am willing to package these dependnecies into it as well if there’s a way to disable this statement.quick-lighter-52296
05/22/2023, 12:27 PMpip picks from cached rather than pull over the network, and that appears to have worked.ancient-application-36103
05/22/2023, 3:19 PMhandsome-ocean-90256
01/12/2024, 11:00 AM'Setting up task environment.' && python -m pip install awscli requests boto3 -qqq && ... it works well and I can see a clear improvement in the duration of the step, however if I leave that pip install in there it doesn't seem to recognize that it already has these libs installed. Do I need to add the path to the libs or something like that? Looking at logs the Settings up task... takes 14s as opposed to a few ms if I remove that pip install.