celery

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2018 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueueEmptyTask

func QueueEmptyTask(rc redis.Conn, queueName string, taskName string) error

QueueEmptyTask queues a new empty task with the passed in task name for the passed in queue

Types

type Task

type Task struct {
	Body            string                 `json:"body"`
	Headers         map[string]interface{} `json:"headers"`
	ContentType     string                 `json:"content-type"`
	Properties      TaskProperties         `json:"properties"`
	ContentEncoding string                 `json:"content-encoding"`
}

Task is the outer struct for a celery task

type TaskDeliveryInfo

type TaskDeliveryInfo struct {
	Priority   int    `json:"priority"`
	RoutingKey string `json:"routing_key"`
	Exchange   string `json:"exchange"`
}

TaskDeliveryInfo is the struct for a task's delivery information

type TaskProperties

type TaskProperties struct {
	BodyEncoding  string           `json:"body_encoding"`
	CorrelationID string           `json:"correlation_id"`
	ReplyTo       string           `json:"replay_to"`
	DeliveryInfo  TaskDeliveryInfo `json:"delivery_info"`
	DeliveryMode  int              `json:"delivery_mode"`
	DeliveryTag   string           `json:"delivery_tag"`
}

TaskProperties is the struct for a task's properties

Jump to

Keyboard shortcuts

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