Commit Graph

18 Commits

Author SHA1 Message Date
53ab34b35e Rename to CONCURRENCY_LIMIT to WP_PLUGINS_INSTALL_CONCURRENCY and set default value to 5 2023-03-21 12:48:08 +01:00
47ba7873f1 Implement proccess locking for plugin installer in order to prevent script from running on multiple instances at the same time 2023-03-21 08:06:47 +01:00
8df891a400 Refactor plugin installer
- Fixes issue where installation is dependent of existence of working database connection

- Overall improvements

- Move out some logic to wp-plugin script

- Use curl to download plugins, instead of wp cli
2023-03-21 01:40:07 +01:00
c26a0afd1f Define concurrency limit with variable 2023-03-17 21:14:26 +01:00
aa68d5ba82 Limit concurrency to 4 plugins per batch
This should help avoid concurrency related issues, sacrificing a little bit of performance
2023-03-17 21:00:06 +01:00
e2ed315ff2 Use indent of 4 spaces 2023-03-17 19:43:44 +01:00
f387ec0773 Revert "Improve plugin installer reliability"
This reverts commit f81ec4c67e.
2023-03-15 02:54:53 +01:00
c41860611d Revert "Mark PLUGIN_PATH as mandatory variable"
This reverts commit 4fc19fa5e7.
2023-03-15 02:54:31 +01:00
4fc19fa5e7 Mark PLUGIN_PATH as mandatory variable 2023-03-15 02:38:24 +01:00
f81ec4c67e Improve plugin installer reliability 2023-03-15 02:33:50 +01:00
dd43a2e929 Remove WEB_ROOT env variable (legacy) 2023-01-23 19:50:30 +01:00
8a8b5eb02e Add exit handler and cleanup the code 2022-07-26 21:38:26 +02:00
xZero707
1f20e06727 Install plugins concurrently in order to improve perfomance
- No longer fatal if plugin install failed. Only warning is issued.
2022-01-22 01:05:52 +01:00
xZero707
db04d0acf1 Optimise further 2021-02-15 01:17:40 +01:00
xZero707
910f24dbcf Rename variable so it makes more sense 2021-02-15 01:16:24 +01:00
xZero707
e9c35c6bd2 Optimize plugin installer performance
Implement manual plugin existence check. WP-CLI is quite slow and processing large list of plugins delays container boot too much
2021-02-15 01:14:42 +01:00
xZero707
b701163fba Use correct env name 2021-02-09 21:57:12 +01:00
xZero707
2aaf7abedd Add automated plugins installer 2021-02-09 21:27:12 +01:00