queue

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRunningCommand

func AddRunningCommand(message msg.Message, fallbackCommand string) chan<- bool

AddRunningCommand registers a long running command, e.g. a running Jenkins job or watching a pull request it's doing following magic: - when using "trigger job XXX" and "then reply done" it will execute the "reply done" when the running command was finished - when the server got restarted, the fallbackCommand gets executed todo add a kill chan to kill long running command via command todo improve locking

func CountCurrentJobs added in v1.6.0

func CountCurrentJobs() int

CountCurrentJobs will return the number of current pending/queued jobs

func IsBlocked

func IsBlocked(ref msg.Ref) bool

IsBlocked checks if there is a blocking command registered for this user/channel

func NewListCommand

func NewListCommand(base bot.BaseCommand) bot.Command

NewListCommand prints the list of all queued commands (blocking commands like running Jenkins jobs)

func NewQueueCommand

func NewQueueCommand(base bot.BaseCommand) bot.Command

NewQueueCommand is able to execute a command when another blocking process is done e.g. have a running jenkins job and using "then reply done!" to get a information later

Types

This section is empty.

Jump to

Keyboard shortcuts

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