marker

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: AGPL-3.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTask

func AddTask(rc redis.Conn, taskGroup string, taskID string) error

AddTask marks the passed in task

func ClearTasks added in v0.0.10

func ClearTasks(rc redis.Conn, taskGroup string) error

ClearTasks removes all tasks for the passed in group (mostly useful in unit testing)

func HasTask

func HasTask(rc redis.Conn, taskGroup string, taskID string) (bool, error)

HasTask returns whether the passed in taskID has already been marked for execution

func RemoveTask added in v0.0.5

func RemoveTask(rc redis.Conn, taskGroup string, taskID string) error

RemoveTask removes the task with the passed in id from our lock

Types

This section is empty.

Jump to

Keyboard shortcuts

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