Skip to content

Commit

Permalink
Merge branch 'v0.2.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
vhadianto committed Feb 6, 2024
2 parents 60c9856 + 2b5f7ea commit 0c56e95
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/es/handler/step_finished.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package handler

import (
"context"
"log/slog"

"github.com/turbot/flowpipe/internal/es/event"
"github.com/turbot/flowpipe/internal/es/execution"
"github.com/turbot/flowpipe/internal/output"
Expand All @@ -10,7 +12,6 @@ import (
"github.com/turbot/pipe-fittings/perr"
"github.com/turbot/pipe-fittings/schema"
"github.com/turbot/pipe-fittings/utils"
"log/slog"
)

type StepFinished EventHandler
Expand Down Expand Up @@ -51,9 +52,7 @@ func (h StepFinished) Handle(ctx context.Context, ei interface{}) error {

pex := ex.PipelineExecutions[evt.PipelineExecutionID]

// If the pipeline has been canceled or paused, then no planning is required as no
// more work should be done.
if pex.IsCanceled() || pex.IsPaused() || pex.IsFinishing() || pex.IsFinished() {
if pex.IsCanceled() || pex.IsPaused() || pex.IsFinished() {
return nil
}

Expand Down

0 comments on commit 0c56e95

Please sign in to comment.