worker

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AsyncTaskCenter *machinery.Server

Functions

func ExecCommand

func ExecCommand(classify string, scriptPath string, params string) (err error)

ExecCommand 异步任务

func NewAsyncTaskWorker

func NewAsyncTaskWorker(concurrency int) *machinery.Worker

func NewTaskCenter

func NewTaskCenter() (*machinery.Server, error)

func SendTask

func SendTask(ctx context.Context, classify string, scriptPath string, params string)

func StartServer

func StartServer()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL