Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scavenger ¶
type Scavenger struct {
// contains filtered or unexported fields
}
Scavenger is the type that holds the state for task queue scavenger daemon
func NewScavenger ¶
NewScavenger returns an instance of executorTask queue scavenger daemon The Scavenger can be started by calling the Start() method on the returned object. Calling the Start() method will result in one complete iteration over all of the task queues in the system. For each task queue, the scavenger will attempt
- deletion of expired tasks in the task queues
- deletion of task queue itself, if there are no tasks and the task queue hasn't been updated for a grace period
The scavenger will retry on all persistence errors infinitely and will only stop under two conditions
- either all task queues are processed successfully (or)
- Stop() method is called to stop the scavenger
Click to show internal directories.
Click to hide internal directories.