processors

package
v0.0.0-...-735ccfd Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	DB                    *db.DB
	WorkerNum, MaxRetries int
}

Job is a processor responsible for enqueuing, running, and completing jobs

func (*Job) Enqueue

func (j *Job) Enqueue(job *types.Job) error

Enqueue adds a job to the pool

func (*Job) Start

func (j *Job) Start() error

Start adds a job to the pool

Jump to

Keyboard shortcuts

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