Skip to content

Resource control: residual backend timing constants configurable #31

@mark-e-deyoung

Description

@mark-e-deyoung

Summary

Make backend hardcoded runtime timing constants configurable to better control resource behavior across environments.

Problem

Several endpoint and worker paths still use inline fixed values (timeouts/sleeps), which are arbitrary and not centrally tunable for different hosts/load profiles.

Scope

  • Inventory hardcoded timing values in API/router/monitor paths.
  • Add validated env/config knobs for selected high-impact constants.
  • Keep safe defaults equivalent to current behavior.
  • Add tests that verify overrides are applied.

Candidate areas

  • command invocation endpoint timeouts
  • probe/retry sleeps in input/automation routes
  • stream and polling sleep intervals where server-side tuning is appropriate

Acceptance criteria

  • No high-impact arbitrary timing constants remain hardcoded without configuration path.
  • Defaults preserve current behavior.
  • Regression tests validate override semantics.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions