Reporting: Handle timeouts in rendering (#20415)

* Added timeout in grpc call to plugins for rendering
This commit is contained in:
Jon Gyllenswärd
2019-11-18 16:58:15 +01:00
committed by GitHub
parent e7e416cf8a
commit 7a8c6a9b54
4 changed files with 20 additions and 5 deletions
+3 -1
View File
@@ -26,11 +26,13 @@ type Opts struct {
}
type RenderResult struct {
FilePath string
FilePath string
KeepFileAfterRender bool
}
type renderFunc func(ctx context.Context, options Opts) (*RenderResult, error)
type Service interface {
Render(ctx context.Context, opts Opts) (*RenderResult, error)
RenderErrorImage(error error) (*RenderResult, error)
}