Skip to content

Commit

Permalink
fix(workflows/video): cleanup workflow is no stream found for save in…
Browse files Browse the repository at this point in the history
…fo task
  • Loading branch information
Zibbp committed Mar 18, 2024
1 parent b1d01f1 commit 753e92b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/workflows/video.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,13 @@ func SaveTwitchLiveVideoInfoWorkflow(ctx workflow.Context, input dto.ArchiveVide

err := workflow.ExecuteActivity(ctx, activities.SaveTwitchLiveVideoInfo, input).Get(ctx, nil)
if err != nil {
if strings.Contains(err.Error(), "no stream found for channel") {
err := cancelWorkflowAndCleanup(context.Background(), input)
if err != nil {
return err
}
return err
}
return workflowErrorHandler(err, input, "save-video-info")
}

Expand Down

0 comments on commit 753e92b

Please sign in to comment.