package utils
import (
"crypto/rand"
"encoding/hex"
"fmt"
"time"
)
func NewTaskID(now time.Time) string {
b := make([]byte, 4)
_, _ = rand.Read(b)
return fmt.Sprintf("task_%s_%s", now.Format("20060102_150405"), hex.EncodeToString(b))
}