Skip to content

feat: default a new bench to lite mode - #415

Merged
tanmoysrt merged 3 commits into
developfrom
lite_mode_Default
Aug 26, 2026
Merged

feat: default a new bench to lite mode#415
tanmoysrt merged 3 commits into
developfrom
lite_mode_Default

Conversation

@tanmoysrt

Copy link
Copy Markdown
Member

BenchCreator writes [lite_mode] enabled = true, so a fresh bench runs one process for web, realtime and jobs instead of the web + socketio + worker set. lite_mode_enabled joins FLAT_KEYS so creation sets it through the same flat-settings path as admin_tls and db_type.

LiteModeConfig.enabled still defaults to False in the dataclass, so a bench.toml written before this change carries no [lite_mode] table and keeps its current process set — no running bench changes topology on upgrade. Opting out stays the Settings toggle.

A new bench on a frappe without frappe/runner.py still falls back to the ordinary set through Bench.is_lite_mode.

BenchCreator now writes `[lite_mode] enabled = true`, so a fresh bench runs
one process for web, realtime and jobs instead of the web + socketio + worker
set. `lite_mode_enabled` joins FLAT_KEYS so creation sets it through the same
flat-settings path as admin_tls and db_type.

LiteModeConfig.enabled still defaults to False in the dataclass. A bench.toml
written before this change carries no [lite_mode] table and keeps its current
process set, so no running bench changes topology on upgrade. Opting out stays
the Settings toggle, which writes `enabled = false` and queues switch-lite-mode.

A new bench on a frappe without frappe/runner.py still falls back to the
ordinary set through Bench.is_lite_mode.
@greptile-apps

greptile-apps Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Reviews (3): Last reviewed commit: "Merge branch 'develop' into lite_mode_De..." | Re-trigger Greptile

Comment thread pilot/config/bench.py Outdated
tanmoysrt and others added 2 commits August 26, 2026 14:52
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@tanmoysrt
tanmoysrt merged commit 05a70e4 into develop Aug 26, 2026
7 of 8 checks passed
@tanmoysrt
tanmoysrt deleted the lite_mode_Default branch August 26, 2026 09:53
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

Successfully merging this pull request may close these issues.

1 participant