Skip to content

Commit

Permalink
fix(workflow): check sleep err
Browse files Browse the repository at this point in the history
  • Loading branch information
Zibbp committed Feb 18, 2024
1 parent 3c8a13b commit f9c58db
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/workflows/video.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,12 @@ func DownloadTwitchLiveThumbnailsWorkflowWait(ctx workflow.Context, input dto.Ar
},
})

workflow.Sleep(ctx, 10*time.Minute)
err := workflow.Sleep(ctx, 10*time.Minute)
if err != nil {
return err
}

err := workflow.ExecuteActivity(ctx, activities.DownloadTwitchLiveThumbnails, input).Get(ctx, nil)
err = workflow.ExecuteActivity(ctx, activities.DownloadTwitchLiveThumbnails, input).Get(ctx, nil)
if err != nil {
return workflowErrorHandler(err, input, "download-thumbnails")
}
Expand Down

0 comments on commit f9c58db

Please sign in to comment.