github.com/justinjmoses/evergreen@v0.0.0-20170530173719-1d50e381ff0d/agent/comm/signal.go (about) 1 package comm 2 3 // Signal describes the various conditions under which the agent 4 // will complete execution of a task. 5 type Signal int64 6 7 // Recognized agent signals. 8 const ( 9 // HeartbeatMaxFailed indicates that repeated attempts to send heartbeat to 10 // the API server fails. 11 HeartbeatMaxFailed Signal = iota 12 // IncorrectSecret indicates that the secret for the task the agent is running 13 // does not match the task secret held by API server. 14 IncorrectSecret 15 // AbortedByUser indicates a user decided to prematurely end the task. 16 AbortedByUser 17 // IdleTimeout indicates the task appears to be idle - e.g. no logs produced 18 // for the duration indicated by DefaultIdleTimeout. 19 IdleTimeout 20 // Completed indicates that the task completed without incident. This signal is 21 // used internally to shut down the signal handler. 22 Completed 23 // Directory Failure indicates that the task failed due to a problem for the agent 24 // creating or moving into a new directory. 25 DirectoryFailure 26 )