tasks

package
v0.0.0-...-678bb0e Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ArchivalTaskQueue is the name of the archival task queue.
	ArchivalTaskQueue = "archival"
)

Variables

This section is empty.

Functions

func CreateArchivalTask

func CreateArchivalTask(c context.Context, id coordinator.HashID, tag logdog.ArchiveDispatchTask_Tag,
	delay time.Duration, params *coordinator.ArchivalParams) error

CreateArchivalTask adds a task to the task queue to initiate archival on an stream. The task will be delayed by "delay".

func DeleteArchiveStreamExpiredTask

func DeleteArchiveStreamExpiredTask(c context.Context, id coordinator.HashID) error

DeleteArchiveStreamExpiredTask deletes stream EXPIRED task associated with id. If the task has already been deleted, this will do nothing.

func InstallHandlers

func InstallHandlers(r *router.Router, base router.MiddlewareChain)

InstallHandlers registers task processing handlers into the supplied router.

Types

This section is empty.

Jump to

Keyboard shortcuts

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