Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { Set(string, []byte) error Get(string) ([]byte, error) // non-blocking only }
Backend is interface for all backends
type Parser ¶
type Parser interface { Decode([]byte) (*protocol.TaskMessage, error) ContentType() string }
Parser is interface for message parsers
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker represents distributed worker
func NewWorker ¶
func NewWorker(ctx context.Context, options *WorkerOptions) (*Worker, error)
NewWorker creates new celery workers number of workers is set to number of cpu cores if numWorkers smaller than zero
Click to show internal directories.
Click to hide internal directories.