listing

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Crons

func Crons() (map[string]*cron.CronType, error)

func DisabledCrons

func DisabledCrons() (map[string]*cron.CronType, error)

func Queues added in v1.2.0

func Queues(short bool) (queueHash map[string]*QueueInfoType, err error)

func RunningJobs

func RunningJobs(fast bool) (jobs []*task.Task, err error)

SCAN takes about 0.5s per million total items in redis we skip it by guessing the possible working list names from worker heartbeat data this is much faster, but the prune functions still need the true list to find any zombie working lists

func RunningWorkers

func RunningWorkers() (workers []*heartbeat.HeartbeatType, err error)

Types

type QueueInfoType added in v1.2.0

type QueueInfoType struct {
	Name    string
	Threads int64
	Pending int64
	Running int64
	Done    int64
	Failed  int64
	Delayed int64
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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