2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-10 09:02:10 +00:00
Commit Graph

2583 Commits

Author SHA1 Message Date
Ankush Menat
9c80f5d24f
perf: single worker in development install (#1392)
Most developers don't need 3 separate workers in development.  This changes procfile to use single worker to consume from all queues in development. 


Pros:
- Lighter development setups


Cons:
- Not "equivalent to production" - not required in most cases so eh. 

You can still edit procfile to start whatever process you want anyway.
2022-11-24 15:29:34 +05:30
Ankush Menat
d198465228
Merge pull request #1387 from ankush/max_requests
feat: add `max_requests` to gunicorn args
2022-11-23 15:04:10 +05:30
Ankush Menat
c4305fd528 style: format everything w black 2022-11-23 14:35:01 +05:30
Ankush Menat
f45db01d9a chore: remove deprecated easy install script 2022-11-23 14:34:24 +05:30
Ankush Menat
d3cb7eceb4 ci: fix flake8 url 2022-11-23 14:34:07 +05:30
Ankush Menat
b57838f366 feat: add max_requests to gunicorn args
As gunicorn is long running process, potentially running for days
without restart the workers might start accumulating garbage that's
never cleaned up and memory usage spikes after some use.

This largely happens because of third-party module imports like pandas,
openpyxl, numpy etc. All of these are required only for few requests and
can be easily re-loaded when required.

`max_requests` restarts the worker after processing number of configured
requests.

How to use?
- If you have more than 1 gunicorn workers then this is automatically
  enabled. You can tweak the max_requests parameter with
  `gunicorn_max_requests` key in common_site_config
- If you just have 1 gunicorn worker (not recommended) then this is not
  automatically enabled as restarting the only worker can cause spikes
  in response times whenever restart is triggered.
2022-11-23 11:16:02 +05:30
Ameen Ahmed
965e178e83
fix: FileNotFound bug (#1383) 2022-11-17 18:56:31 +05:30
Ankush Menat
738d623117 chore: add editorconfig 2022-10-27 16:16:23 +05:30
Ankush Menat
09274ed305
docs: remove easy install from docs (#1380)
https://discuss.erpnext.com/t/deprecation-easy-install-script-is-no-longer-supported/96245/3

[skip ci]
2022-10-20 16:09:06 +05:30
semantic-release-bot
6fb8078d72 chore(release): Bumped to Version 5.14.4
## [5.14.4](https://github.com/frappe/bench/compare/v5.14.3...v5.14.4) (2022-10-14)

### Bug Fixes

* no-git support for dependency resolver ([#1368](https://github.com/frappe/bench/issues/1368)) ([fcbc2ea](fcbc2eaa47))
* use os.remove instead of shutil.rmtree for symlinks ([#1372](https://github.com/frappe/bench/issues/1372)) ([9fd15f6](9fd15f6fdd))
2022-10-14 06:30:23 +00:00
Ankush Menat
9da444da39 Merge branch 'staging' into v5.x 2022-10-14 11:58:46 +05:30
Ankush Menat
a5cc850813 Merge branch 'develop' into staging 2022-10-14 11:57:48 +05:30
Devin Slauenwhite
9fd15f6fdd
fix: use os.remove instead of shutil.rmtree for symlinks (#1372) 2022-09-29 19:38:54 +05:30
Aradhya Tripathi
fcbc2eaa47
fix: no-git support for dependency resolver (#1368)
* feat: introducing support for no-git

refactor: lint

* feat: added support for validating git repos

* refactor: removed formatting changes
2022-09-08 11:27:34 +05:30
semantic-release-bot
529943891d chore(release): Bumped to Version 5.14.3
## [5.14.3](https://github.com/frappe/bench/compare/v5.14.2...v5.14.3) (2022-08-28)

### Bug Fixes

* bad URL in raw.githubusercontent.com ([#1363](https://github.com/frappe/bench/issues/1363)) ([589f7a4](589f7a400e))
* parsing error ([#1364](https://github.com/frappe/bench/issues/1364)) ([4bc3a08](4bc3a086f2))
* use ref param instead of branch for get_required_deps (GitHub contents API) ([#1362](https://github.com/frappe/bench/issues/1362)) ([9131ba0](9131ba05db))
2022-08-28 13:19:45 +00:00
Ankush Menat
aef5587744 Merge branch 'staging' into v5.x 2022-08-28 18:48:20 +05:30
Ankush Menat
7b95f3161d Merge branch 'develop' into staging 2022-08-28 18:47:44 +05:30
Dany Robert
4bc3a086f2
fix: parsing error (#1364) 2022-08-28 18:47:00 +05:30
HENRY Florian
9131ba05db
fix: use ref param instead of branch for get_required_deps (GitHub contents API) (#1362)
* fix: use ref param instead of branch

* fix: use ref param instead of branch

* chore: unintentional changes from web editor

Co-authored-by: Ankush Menat <ankush@frappe.io>
2022-08-28 17:59:10 +05:30
HENRY Florian
589f7a400e
fix: bad URL in raw.githubusercontent.com (#1363) 2022-08-28 17:06:06 +05:30
semantic-release-bot
c6b334894e chore(release): Bumped to Version 5.14.2
## [5.14.2](https://github.com/frappe/bench/compare/v5.14.1...v5.14.2) (2022-08-17)

### Bug Fixes

* **DX:** make warnings go to stderr ([b6b9481](b6b9481b7b))
* update check condition ([3e749ba](3e749ba547))
2022-08-17 07:05:16 +00:00
Gavin D'souza
c89dc4189e Merge branch 'staging' into v5.x 2022-08-17 12:33:59 +05:30
Gavin D'souza
1402c6a160 Merge branch 'develop' into staging 2022-08-17 12:33:28 +05:30
gavin
871c703ee3
Merge pull request #1361 from ankush/warnings_output
fix(DX): make warnings go to stderr
2022-08-10 15:23:24 +05:30
Ankush Menat
3e749ba547 fix: update check condition
Right now updates are checked for src and --version command, it used to
be opposite of this.

ref: 7c653db703
2022-08-10 13:53:06 +05:30
Ankush Menat
b6b9481b7b fix(DX): make warnings go to stderr 2022-08-10 11:42:34 +05:30
semantic-release-bot
d70c32880a chore(release): Bumped to Version 5.14.1
## [5.14.1](https://github.com/frappe/bench/compare/v5.14.0...v5.14.1) (2022-08-07)

### Bug Fixes

* dont use glob pattern for `python` exec ([dc047a5](dc047a5e7d))
2022-08-07 08:14:20 +00:00
Gavin D'souza
f1d9014737 Merge branch 'staging' into v5.x 2022-08-07 13:43:03 +05:30
Gavin D'souza
61728a1b20 Merge branch 'develop' into staging 2022-08-07 13:42:43 +05:30
gavin
dea3278535
Merge pull request #1360 from resilient-tech/expect-python-exec
fix: dont use glob pattern for `python` exec
2022-08-07 13:41:40 +05:30
Sagar Vora
dc047a5e7d fix: dont use glob pattern for python exec 2022-08-07 01:36:16 +05:30
semantic-release-bot
f532e0b67c chore(release): Bumped to Version 5.14.0
# [5.14.0](https://github.com/frappe/bench/compare/v5.13.4...v5.14.0) (2022-08-04)

### Bug Fixes

* **nginx:** Allow specifying log_format setting ([bbf0169](bbf0169994))
* **patch:** Rename parent dir instead of moving individual dirs ([0bd0717](0bd0717f24))

### Features

* Allow skipping supervisord config check in setup supervisor ([a3af905](a3af905d92))
* **nginx:** Allow logging settings as site/combined/none ([5370129](5370129283))
2022-08-04 10:52:09 +00:00
Gavin D'souza
d4a99250da Merge branch 'staging' into v5.x 2022-08-04 16:20:55 +05:30
Gavin D'souza
7d6dccbb61 Merge branch 'develop' into staging 2022-08-04 16:20:34 +05:30
gavin
ac796f1bfd
Merge pull request #1355 from gavindsouza/nginx-access_log
feat(nginx): Allow logging settings as site/combined/none
2022-08-04 16:19:45 +05:30
Gavin D'souza
bbf0169994 fix(nginx): Allow specifying log_format setting
Changes
* Added sugared option class that allows setting options only if another
  is set
* setup nginx command allows to set logging level & log_format options
2022-08-04 16:00:27 +05:30
Gavin D'souza
5370129283 feat(nginx): Allow logging settings as site/combined/none 2022-08-04 14:10:09 +05:30
gavin
391dcf1e12
Merge pull request #1354 from gavindsouza/skip-supervisord
fix: Suggest don't update supervisord conf
2022-08-04 14:06:13 +05:30
gavin
925530f05b
Merge pull request #1356 from gavindsouza/archived_sites-patch-fix
fix(patch): Rename parent dir instead of moving individual dirs
2022-08-04 14:05:30 +05:30
gavin
809640a859
Merge pull request #1358 from gavindsouza/docs-readme-rm-html
chore(readme): Remove PyPI unsupported picture tag
2022-08-04 13:16:49 +05:30
Gavin D'souza
c1fe53d47c chore(readme): Remove PyPI unsupported picture tag
ref: https://pypi.org/project/frappe-bench/5.13.3/
2022-08-04 13:11:44 +05:30
Gavin D'souza
0bd0717f24 fix(patch): Rename parent dir instead of moving individual dirs 2022-08-04 13:03:22 +05:30
Gavin D'souza
f734eef7a7 refactor: check_supervisord_config 2022-08-04 12:15:51 +05:30
Gavin D'souza
db13ce3732 fix!: Don't update supervisord conf - instead just suggest 2022-08-04 12:14:07 +05:30
Gavin D'souza
a3af905d92 feat: Allow skipping supervisord config check in setup supervisor 2022-08-04 12:13:10 +05:30
semantic-release-bot
72b4ed268a chore(release): Bumped to Version 5.13.4
## [5.13.4](https://github.com/frappe/bench/compare/v5.13.3...v5.13.4) (2022-08-03)

### Bug Fixes

* Remove broken import path ([2c5c28b](2c5c28bbe2))
2022-08-03 11:22:20 +00:00
Gavin D'souza
155524b769 Merge branch 'staging' into v5.x 2022-08-03 16:50:38 +05:30
Gavin D'souza
9458fb0380 Merge branch 'develop' into staging 2022-08-03 16:50:08 +05:30
gavin
26e5630265
Merge pull request #1353 from gavindsouza/broken-import-path
fix: Broken import path
2022-08-03 16:48:17 +05:30
Ankush Menat
7e12108bc6 ci: automated release regex
ref: https://github.com/frappe/frappe/pull/17725
2022-08-03 16:16:30 +05:30