26 lines
680 B
Go
26 lines
680 B
Go
package queue
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"github.com/hibiken/asynq"
|
|
"tydata-server/app/user/cmd/api/internal/svc"
|
|
)
|
|
|
|
const TASKTIME = "32 * * * *"
|
|
|
|
type CleanQueryDataHandler struct {
|
|
svcCtx *svc.ServiceContext
|
|
}
|
|
|
|
func NewCleanQueryDataHandler(svcCtx *svc.ServiceContext) *CleanQueryDataHandler {
|
|
return &CleanQueryDataHandler{
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (l *CleanQueryDataHandler) ProcessTask(ctx context.Context, t *asynq.Task) error {
|
|
fmt.Println("企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅企鹅-ProcessTask")
|
|
return nil
|
|
}
|