asynctaskext

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

How can I check that a running asynctask worker can otherwise process a new message within 5 seconds (health check)? - `curl 127.0.0.1:5000/health?timeout=5&queue=gobay.task_sub` - `curl 127.0.0.1:5000/health?timeout=5` **default queue**

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncTaskExt

type AsyncTaskExt struct {
	NS string
	// contains filtered or unexported fields
}

func (*AsyncTaskExt) Application

func (t *AsyncTaskExt) Application() *gobay.Application

func (*AsyncTaskExt) Close

func (t *AsyncTaskExt) Close() error

func (*AsyncTaskExt) Init

func (t *AsyncTaskExt) Init(app *gobay.Application) error

func (*AsyncTaskExt) Object

func (t *AsyncTaskExt) Object() interface{}

func (*AsyncTaskExt) RegisterWorkerHandler

func (t *AsyncTaskExt) RegisterWorkerHandler(name string, handler interface{}) error

RegisterWorkerHandler add task handler to worker to process task messages

func (*AsyncTaskExt) RegisterWorkerHandlers added in v0.8.0

func (t *AsyncTaskExt) RegisterWorkerHandlers(handlers map[string]interface{}) error

RegisterWorkerHandlers add task handlers to worker to process task messages

func (*AsyncTaskExt) SendTask

func (t *AsyncTaskExt) SendTask(sign *tasks.Signature) (*result.AsyncResult, error)

SendTask publish task messages to broker

func (*AsyncTaskExt) SendTaskWithContext added in v0.14.6

func (t *AsyncTaskExt) SendTaskWithContext(ctx context.Context, sign *tasks.Signature) (*result.AsyncResult, error)

SendTask publish task messages with context to broker

func (*AsyncTaskExt) StartWorker

func (t *AsyncTaskExt) StartWorker(queue string, concurrency int, enableHealthCheck bool) error

StartWorker start a worker that consume task messages for queue

Jump to

Keyboard shortcuts

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