Skip to content

--use-api slow to deploy #3410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
riderx opened this issue Apr 9, 2025 · 3 comments
Closed

--use-api slow to deploy #3410

riderx opened this issue Apr 9, 2025 · 3 comments

Comments

@riderx
Copy link

riderx commented Apr 9, 2025

I switched to --use-api and since then, our deployment got way slower where that before with docker.

i think all call could be done in parallel as it done with API

@sweatybridge
Copy link
Contributor

You can add the flag -j 3 to deploy with 3 concurrent jobs.

Main reason it's slow is that it has to wait for all local dependencies to be uploaded, rather than pulling dependencies locally for bundling with docker.

@riderx
Copy link
Author

riderx commented Apr 26, 2025

Thanks, I will try it, @sweatybridge could be nice to have a global cache on your side, as most of my functions upload the same files so we have many duplicate i believe

@riderx
Copy link
Author

riderx commented Apr 26, 2025

i used -j 10, and it moved from 3 min to 21 sec :)

@riderx riderx closed this as completed Apr 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants