tasks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const TypeExample = "example_task"

TypeExample is the type for the example task. This is what is passed in to TaskClient.New() when creating a new task

Variables

This section is empty.

Functions

This section is empty.

Types

type ExampleProcessor

type ExampleProcessor struct {
}

ExampleProcessor processes example tasks

func (*ExampleProcessor) ProcessTask

func (p *ExampleProcessor) ProcessTask(ctx context.Context, t *asynq.Task) error

ProcessTask handles the processing of the task

Jump to

Keyboard shortcuts

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