Reporting: Handle timeouts in rendering (#20415)
* Added timeout in grpc call to plugins for rendering
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user