This project is mirrored from https://gitee.com/mirrors/nomad.git.
Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
- 14 Jan, 2019 2 commits
-
-
Michael Schurter authored
Co-Authored-By:
nickethier <ncethier@gmail.com>
-
Nick Ethier authored
-
- 12 Jan, 2019 4 commits
-
-
Nick Ethier authored
-
Nick Ethier authored
-
Nick Ethier authored
plugins/driver: update driver interface to support streaming stats client/tr: use streaming stats api TODO: * how to handle errors and closed channel during stats streaming * prevent tight loop if Stats(ctx) returns an error drivers: update drivers TaskStats RPC to handle streaming results executor: better error handling in stats rpc docker: better control and error handling of stats rpc driver: allow stats to return a recoverable error
-
Preetha Appan authored
Added a unit test with custom statedb implementation that errors, to use to verify destroy errors
-
- 09 Jan, 2019 3 commits
-
-
Alex Dadgar authored
-
Michael Schurter authored
Co-Authored-By:
dadgar <alex@hashicorp.com>
-
Alex Dadgar authored
This PR improves how killing a task is handled. Before the kill function directly orchestrated the killing and was only valid while the task was running. The new behavior is to mark the desired state and wait for the task runner to converge to that state.
-
- 08 Jan, 2019 4 commits
-
-
Michael Schurter authored
We were just emitting Killed/Terminated events before. In v0.8 we emitted Killing/Killed, but lacked Terminated when explicitly stopping a task. This change makes it so Terminated is always included, whether explicitly stopping a task or it exiting on its own. New output: 2019-01-04T14:58:51-08:00 Killed Task successfully killed 2019-01-04T14:58:51-08:00 Terminated Exit Code: 130, Signal: 2 2019-01-04T14:58:51-08:00 Killing Sent interrupt 2019-01-04T14:58:51-08:00 Leader Task Dead Leader Task in Group dead 2019-01-04T14:58:49-08:00 Started Task started by client 2019-01-04T14:58:49-08:00 Task Setup Building Task Directory 2019-01-04T14:58:49-08:00 Received Task received by client Old (v0.8.6) output: 2019-01-04T22:14:54Z Killed Task successfully killed 2019-01-04T22:14:54Z Killing Sent interrupt. Waiting 5s before force killing 2019-01-04T22:14:54Z Leader Task Dead Leader Task in Group dead 2019-01-04T22:14:53Z Started Task started by client 2019-01-04T22:14:53Z Task Setup Building Task Directory 2019-01-04T22:14:53Z Received Task received by client
-
Mahmood Ali authored
-
Mahmood Ali authored
-
Mahmood Ali authored
Simplify allocDir.Build() function to avoid depending on client/structs, and remove a parameter that's always set to `false`. The motivation here is to avoid a dependency cycle between drivers/cstructs and alloc_dir.
-
- 07 Jan, 2019 7 commits
-
-
Alex Dadgar authored
-
Alex Dadgar authored
-
Alex Dadgar authored
-
Alex Dadgar authored
-
Alex Dadgar authored
-
Alex Dadgar authored
-
Alex Dadgar authored
-
- 04 Jan, 2019 1 commit
-
-
Mahmood Ali authored
Preserve pre-0.9, where task runner emits `Received: Task received by client` event on task runner creation.
-
- 03 Jan, 2019 2 commits
-
-
Danielle Tomlinson authored
Follow up from https://github.com/hashicorp/nomad/pull/5007#pullrequestreview-186739124
-
Danielle Tomlinson authored
https://github.com/hashicorp/nomad/pull/5032 introduced a regression where the origHookState was used in place of the response from the hook.
-
- 20 Dec, 2018 1 commit
-
-
Nick Ethier authored
-
- 19 Dec, 2018 10 commits
-
-
Alex Dadgar authored
-
Michael Schurter authored
-
Michael Schurter authored
Also persist and load DeploymentStatus to avoid rechecking health after client restarts.
-
Michael Schurter authored
They did not take into account the Env field.
-
Danielle Tomlinson authored
-
Nick Ethier authored
-
Nick Ethier authored
drivermanager: fix pr comments/feedback
-
Nick Ethier authored
-
Nick Ethier authored
-
Nick Ethier authored
The driver manager is modeled after the device manager and is started by the client. It's responsible for handling driver lifecycle and reattachment state, as well as processing the incomming fingerprint and task events from each driver. The mananger exposes a method for registering event handlers for task events that is used by the task runner to update the server when a task has been updated with an event. Since driver fingerprinting has been implemented by the driver manager, it is no longer needed in the fingerprint mananger and has been removed.
-
- 18 Dec, 2018 6 commits
-
-
Alex Dadgar authored
-
Alex Dadgar authored
-
Alex Dadgar authored
-
Alex Dadgar authored
-
Alex Dadgar authored
-
Danielle Tomlinson authored
The RestartCount is not really suitable for use as a source of uniqueness within task invocations as it is not monotonic, and interacts with the restart stanza in a users config, so conflates restarts due to task failures, with restarts due to enviromental changes, such as consul template or vault secrets changing. Here we instead use a substring from a uuid, which is more random than we strictly need, but is nicer than rolling our own random string generator here.
-