Closed SupremeTechnopriest closed 3 years ago
The callOptions
timeout has always precedence.
timeout
in ctx calling options (the `callOptions.timeout set it)timeout
in action definitionrequestTimeout
in broker options.Ah makes sense. Its because callOptions are passed directly to the call function. I have a bunch of different route groups in my project. About 6 different sets of routes. What I would like to be able to do is set a default timeout for the group of routes and be able to override that per action. Maybe callOptions is not the place to do that. Is there a requestTimeout
option directly on the routes that we can set so that action values can override them?
I think, you can't do that. Only callOptions
is configurable in the routes.
Okay no problem. I got my backend to stop timing out by upping the callOptions timeout so Im good to go. This would just be a nice to have I think. You can feel free to close this.
If you set
callOptions.timeout
on the routes:and try to override it for a specific action:
The
callOptions
value takes precedence. I would expect to be able to override this behavior per route.