Skip to content

Commit

Permalink
Merge pull request #205 from kaytu-io/fix-non-interactive-on-finish
Browse files Browse the repository at this point in the history
fix: Adds delay for on finish to fix non-interactive mode
  • Loading branch information
salehkhazaei committed Jun 14, 2024
2 parents 4bea678 + 6879e53 commit a9a8389
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/plugin/sdk/job_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func (q *JobQueue) Start() {
go func() {
for {
if q.finishedCounter.Get() == q.pendingCounter.Get() && q.onFinish != nil {
time.Sleep(500 * time.Millisecond)
q.onFinish()
}
time.Sleep(500 * time.Millisecond)
Expand Down

0 comments on commit a9a8389

Please sign in to comment.