Module: Banzai::Filter::Concerns
- Defined in:
- lib/banzai/filter/concerns/timeout_filter_handler.rb,
lib/banzai/filter/concerns/output_safety.rb,
lib/banzai/filter/concerns/pipeline_timing_check.rb
Overview
Add timeout ability to a Banzai filter by wrapping it in a Gitlab::RenderTimeout. This way partial results can be returned, and the entire pipeline is not killed.
This should not be used for any filter that must be allowed to complete, like a ‘ReferenceRedactorFilter` or `SanitizationFilter` It also should not be used when the filter depends on network calls, including PostgreSQL requests. See gitlab.com/gitlab-org/gitlab/-/merge_requests/145679#note_1875831539
Defined Under Namespace
Modules: OutputSafety, PipelineTimingCheck, TimeoutFilterHandler