openwhisk-cli icon indicating copy to clipboard operation
openwhisk-cli copied to clipboard

Suppress Rule List Errors Regarding Status Fetches

Open dubee opened this issue 7 years ago • 2 comments

When calling wsk rule list, an error can occur if a listed rule is deleted by the time the command fetches the status of that rule. We should just omit the rule from the list if the rule no longer exists (status code 404).

dubee avatar Feb 25 '18 21:02 dubee

or update the backend to include the status value with the other rule definition data being returned as part of the wsk rule list backend api invocation. this would avoid multiple backend calls from the cli.

mdeuser avatar Feb 26 '18 13:02 mdeuser

The status of the rule isn't part of the rule doc in the backend - it would be another db hit to fill this out.

rabbah avatar Feb 26 '18 13:02 rabbah