Skip to content

Commit 305bb11

Browse files
Merge pull request #5141 from sensu/silence-fix
adding silence fix
2 parents e89f7c1 + e42774c commit 305bb11

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

backend/pipeline/adapterv1.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ func (a *AdapterV1) Run(ctx context.Context, ref *corev2.ResourceReference, reso
182182
fields["pipeline_workflow"] = workflow.Name
183183
debugFields["pipeline_workflow"] = workflow.Name
184184

185+
if event.Check.IsSilenced {
186+
continue
187+
}
188+
185189
// Process the event through the workflow filters
186190
filtered, err := a.processFilters(ctx, workflow.Filters, event)
187191
if err != nil && !pipeline.ContinueOnError {

0 commit comments

Comments
 (0)