sighandlers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2015 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 10 Imported by: 0

Documentation

Overview

sighandlers handle signals and behave appropriately. Currently, the only supported signal is SIGTERM which causes state to be flushed to disk before exiting.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FinalSave added in v1.0.0

func FinalSave(saver statemanager.Saver, taskEngine engine.TaskEngine) error

FinalSave should be called immediately before exiting, and only before exiting, in order to flush tasks to disk. It waits a short timeout for state to settle if necessary. If unable to reach a steady-state and save within this short timeout, it returns an error

func StartTerminationHandler

func StartTerminationHandler(saver statemanager.Saver, taskEngine engine.TaskEngine)

Types

This section is empty.

Directories

Path Synopsis
Package exitcodes defines agent exit codes
Package exitcodes defines agent exit codes

Jump to

Keyboard shortcuts

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