cadence icon indicating copy to clipboard operation
cadence copied to clipboard

Increase default timeout seconds for Reset command and add description about timeout issues

Open longquanzheng opened this issue 4 years ago • 5 comments

Is your feature request related to a problem? Please describe. Using Reset command with CLI will get code:deadline-exceeded message:timeout easily because reset requires replay in the server. It's quite resource consuming, depending on the length/size of the history.

By default the CLI context timeout is only 5 seconds: https://github.com/uber/cadence/blob/63bdb5d7a04285cf57992c574639c9d911c7001a/tools/cli/defs.go#L54

This is mostly not enough for production use cases.

Right now people can provide a global flag "--context_timeout" or "--ct" to override the timeout, but it's not friendly, and few people are ware of this global option.

Proposed Solution A clear and concise description of what you want to happen. Increase the default timeout of Reset command(only), to a value like 1 minute. Also add description to the Reset command to let people know that they can override it with the global options

Additional context Add any other context or screenshots about the feature request here. From a slack convo: https://uber-cadence.slack.com/archives/CL22WDF70/p1601986927134000

longquanzheng avatar Oct 06 '20 18:10 longquanzheng

@longquanzheng / @yycptt , I would like to take this up!

lazy-ninja avatar Mar 03 '21 06:03 lazy-ninja

@lazy-ninja That would be awesome! Please feel free to!

meiliang86 avatar Apr 02 '21 00:04 meiliang86

Thanks, @meiliang86.

lazy-ninja avatar Apr 06 '21 14:04 lazy-ninja

Hi @longquanzheng, can i work on this issue

d-vignesh avatar Feb 26 '24 07:02 d-vignesh

Would like to work on this @longquanzheng

osho-20 avatar Jun 19 '24 16:06 osho-20