Skip to content

Configurable timeouts and concurrency limits via config.yaml #67

@yimsk

Description

@yimsk

Summary

Allow users to configure timeout values and concurrency limits through ~/.config/claws/config.yaml

Current Hardcoded Values

Constant Value Location
awsInitTimeout 5s internal/app/app.go
multiRegionFetchTimeout 30s internal/view/resource_browser_fetch.go
tagSearchTimeout 30s internal/view/tag_search_view.go
metricsLoadTimeout 10s internal/view/resource_browser_metrics.go
maxConcurrentFetches 50 internal/view/resource_browser_fetch.go

Proposed Config Structure

# ~/.config/claws/config.yaml
timeouts:
  aws_init: 5s
  multi_region_fetch: 30s
  tag_search: 30s
  metrics_load: 10s

concurrency:
  max_fetches: 50

Use Cases

  • Slow network environments need longer timeouts
  • Users with many profiles may want higher concurrency limits
  • Debugging/testing may benefit from shorter timeouts

Related

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