feat: add task completion

This commit is contained in:
sujit
2025-07-31 14:27:27 +05:45
parent ee2fa5dcbc
commit 295eec923c
5 changed files with 294 additions and 234 deletions

View File

@@ -12,7 +12,6 @@ import (
"time"
"github.com/oarkflow/log"
"github.com/oarkflow/xid"
"github.com/oarkflow/mq/storage"
"github.com/oarkflow/mq/storage/memory"
@@ -585,7 +584,7 @@ func (s *Scheduler) AddTask(ctx context.Context, payload *Task, opts ...Schedule
}
stop := make(chan struct{})
newTask := &ScheduledTask{
id: xid.New().String(),
id: NewID(),
ctx: ctx,
handler: options.Handler,
payload: payload,