Skip to content

Commit

Permalink
feat: add stop for tasker
Browse files Browse the repository at this point in the history
Signed-off-by: rfyiamcool <[email protected]>
  • Loading branch information
rfyiamcool authored and adhocore committed Mar 10, 2024
1 parent d3b6afc commit 4a0cf00
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/tasker/tasker.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,11 @@ func (t *Tasker) Run() {
t.wait()
}

// Stop the task manager.
func (t *Tasker) Stop() {
t.abort = true
}

var dateFormat = "2006/01/02 15:04:05"

func (t *Tasker) doSetup() {
Expand Down

0 comments on commit 4a0cf00

Please sign in to comment.