GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-python

Error handler for async functions

Aberta
#401 1 comentário 0 reações 0 responsáveis Ver no GitHub
enhancement P2
Linguagem predominante
Python
Estrelas
968
Forks
128
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Hello!

The README shows a [error handler](https://github.com/GoogleCloudPlatform/functions-framework-python/blob/a07b1e4f81d84424189488022e5f3d59c06014cc/examples/cloud_run_async/README.md) for the standard functions framework.

```py
import functions_framework

@functions_framework.errorhandler(ZeroDivisionError)
def handle_zero_division(e):
return "I'm a teapot", 418

def function(request):
1 / 0
return "Success", 200
```

Is there something similar available for the newer [async functions](https://github.com/GoogleCloudPlatform/functions-framework-python/blob/a07b1e4f81d84424189488022e5f3d59c06014cc/examples/cloud_run_async/README.md)?

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.