Commit Graph

48 Commits

Author SHA1 Message Date
Alex Dadgar
b290b8ef79 Update the consul service when the task/alloc changes 2016-02-06 17:08:20 -08:00
Alex Dadgar
fb010e2c5d Small fixes 2016-02-04 14:19:27 -08:00
Alex Dadgar
c89e97084d Fix AllocRunner not capturing destroy signal and tests 2016-02-04 13:09:53 -08:00
Alex Dadgar
03aca9887b Client handles updates to KillTimeout and Restart Policy 2016-02-03 19:43:44 -08:00
Alex Dadgar
5d297a446f Move restart tracker creation into task runner 2016-02-03 16:16:48 -08:00
Alex Dadgar
a2132950a5 Restart on-success shouldn't be user specifiable 2016-02-02 17:35:06 -08:00
Alex Dadgar
019883c5b1 Clean interaction between alloc-runner and task-runner 2016-02-02 11:09:29 -08:00
Alex Dadgar
c0ab75a7f9 Don't share task state with the alloc in the task runner 2016-02-01 17:47:53 -08:00
Alex Dadgar
3b90539fe9 Fix locks and use task runners state not alloc state 2016-02-01 15:43:59 -08:00
Alex Dadgar
410ae593e7 Fix double pull with introduction of AllocModifyIndex 2016-02-01 15:43:59 -08:00
Alex Dadgar
b46bb0a02d Make NewRestartTracker private 2015-12-18 12:17:54 -08:00
Alex Dadgar
3122433b47 merge 2015-12-18 12:17:13 -08:00
Diptanu Choudhury
d4d7572604 Making the allocs hold service ids 2015-12-14 15:08:35 -08:00
Diptanu Choudhury
b0c8cf6e36 Renamed consul client to service 2015-11-24 12:34:26 -08:00
Diptanu Choudhury
27819a8b33 Making sure we sync the real state of services of a Task with Consul 2015-11-18 18:35:22 -08:00
Diptanu Choudhury
9a578c5c0d Added the implementation of consul client 2015-11-18 00:50:45 -08:00
Alex Dadgar
b692bcd0b4 Fix the capacity 2015-11-16 15:14:21 -08:00
Alex Dadgar
f4b461f97a Track Task State in the client and capture Wait results 2015-11-16 15:14:21 -08:00
Diptanu Choudhury
007fc74fc1 Saving state of the Task Runner while it's trying to update it 2015-11-12 15:53:42 -08:00
Alex Dadgar
aec33179e5 Merge pull request #408 from hashicorp/f-client-restore
Client Restore State Fixes
2015-11-11 12:32:11 -08:00
Diptanu Choudhury
bd82b0f1ce Returning back if alloc runner isn't saved 2015-11-09 17:04:53 -08:00
Diptanu Choudhury
056d113ded Exctracted a method to save the alloc runner state 2015-11-09 16:59:02 -08:00
Diptanu Choudhury
d6de54836e Inlining error check 2015-11-09 16:45:42 -08:00
Diptanu Choudhury
a797f11f74 Refactored Save State of Alloc runner 2015-11-09 16:15:11 -08:00
Alex Dadgar
d885c6807a Client restores state properly 2015-11-09 15:55:31 -08:00
Diptanu Choudhury
b350fc8f7f Returning once we have an error while saving a task that doesn't exist 2015-11-09 12:44:14 -08:00
Diptanu Choudhury
17cab6ebd7 Updating snapshots of a TaskRunner when status of Task changes 2015-11-09 12:36:07 -08:00
Diptanu Choudhury
fb8f922f2e Passing in the AllocID to exec context so that it can be used in the drivers 2015-11-05 18:34:04 -08:00
Diptanu Choudhury
64c1a0b18c Fixed some tests and refactored logic 2015-11-05 17:30:41 -08:00
Diptanu Choudhury
cf76e3a456 Passing restart tracker in the task runner 2015-11-05 16:38:19 -08:00
Diptanu Choudhury
2e168af9d3 Cleaned up the logic to calculate restart duration 2015-11-05 15:16:29 -08:00
Diptanu Choudhury
a6c06c7279 Setting the restart policy to AllocRunner and Task Runners 2015-11-05 11:13:04 -08:00
Alex Dadgar
db88c38bc7 Bind alloc dir and task local dir to docker containers and parse args correctly 2015-10-15 16:40:07 -07:00
Alex Dadgar
02fb48fbc1 Cleanup allocations when in dev mode 2015-10-04 13:36:03 -07:00
Alex Dadgar
66fd821af5 Change allocdir variable name for clarity 2015-09-25 16:49:19 -07:00
Alex Dadgar
8a5e65e27a Merge qemu test 2015-09-25 16:49:14 -07:00
Alex Dadgar
38460ca653 AllocDirBuilder that creates the alloc directory structure 2015-09-25 16:46:41 -07:00
Armon Dadgar
bb22cf7ebe client: Use Alloc.TaskResouces to override Task.Resources 2015-09-13 17:35:56 -07:00
Armon Dadgar
ee520f29b0 client: allocate alloc dir and cleanup 2015-08-30 17:35:58 -07:00
Armon Dadgar
f6928545e8 client: test alloc runner 2015-08-30 17:10:17 -07:00
Armon Dadgar
65e79fb733 client: refactor AllocRunner for testing 2015-08-30 16:35:04 -07:00
Armon Dadgar
8552796d4b client: remove TaskRunner dependence on AllocRunner 2015-08-29 19:42:35 -07:00
Armon Dadgar
9f71ce3489 client: working on state restore 2015-08-29 19:14:47 -07:00
Armon Dadgar
3596d073ee client: first pass at save/restore of state 2015-08-29 18:16:49 -07:00
Armon Dadgar
4106e794a8 client: working on runners 2015-08-29 15:46:10 -07:00
Armon Dadgar
0bf1aec4a5 client: making progress 2015-08-23 16:49:48 -07:00
Armon Dadgar
5f11b99caa client: standardize naming 2015-08-23 15:36:06 -07:00
Armon Dadgar
585e11943b client: rename Alloc/TaskContext to Runner 2015-08-23 15:32:46 -07:00