Skip to content

Refactor/first deployment#228

Open
kferjaoui wants to merge 6 commits into
developerfrom
refactor/first_deployment
Open

Refactor/first deployment#228
kferjaoui wants to merge 6 commits into
developerfrom
refactor/first_deployment

Conversation

@kferjaoui

@kferjaoui kferjaoui commented Feb 13, 2026

Copy link
Copy Markdown
Collaborator
  • The GUI entry point previously caught Redis connection failures and
    fell back to CLI defaults. This was misleading i.e. downstream modules
    create their own ConfigurationClient at import time, so the GUI
    crashes without Redis regardless. Remove the false resilience: fail
    fast with a clear error, simplify parameter resolution to CLI override first,
    then to Redis value with globals.init()

  • Add epoc-config.yaml and init_redis.py so operators can bootstrap
    a fresh Redis instance in one step before launching the GUI.

  • Normalize imports to absolute package paths

kferjaoui and others added 6 commits December 13, 2025 16:42
- Remove Redis-backed cfg access from globals.py module scope
- Avoid cfg.temserver as argparse default (prevents ValueError at startup)
- Initialize globals via globals.init() after parsing args and resolving cfg
Entry point (main_ui.py):
- Remove graceful fallback for missing Redis connection; fail fast
  with logging.critical + sys.exit(1) instead
- Remove _cfg_get helper
- Simplify parameter resolution to: CLI override -> cfg attribute
- Update ABOUT_TEXT version description

New files:
- epoc-config.yaml: default Redis configuration template with
  documented fields for detector geometry, network endpoints,
  acquisition settings, and display overlays
- init_redis.py: bootstrap script to populate Redis from YAML
  (flush_db=True) for fresh deployments
@kferjaoui kferjaoui mentioned this pull request Feb 13, 2026
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