Skip to content

Adding timeout to context config #1580

@rubiojr

Description

@rubiojr

Proposed change

It would be nice to be able to set timeout permanently in the cli context like other cli context settings. After researching it a bit doesn't seem I can nats context edit and set timeout there.

Is that correct? Intentional or unintended omission?

Use case

I sometimes run something like nats account backup --check nats-rubiojr to backup my account data. --check causes backup to fail with a context deadline exceeded unless I add --timeout 5m (or via env). The default (5 seconds), feels a bit too low for streams with data, times out easily.

Contribution

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalEnhancement idea or proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions