open-nomad/command/agent/consul
Luiz Aoqui 7a8cacc9ec
allocrunner: refactor task coordinator (#14009)
The current implementation for the task coordinator unblocks tasks by
performing destructive operations over its internal state (like closing
channels and deleting maps from keys).

This presents a problem in situations where we would like to revert the
state of a task, such as when restarting an allocation with tasks that
have already exited.

With this new implementation the task coordinator behaves more like a
finite state machine where task may be blocked/unblocked multiple times
by performing a state transition.

This initial part of the work only refactors the task coordinator and
is functionally equivalent to the previous implementation. Future work
will build upon this to provide bug fixes and enhancements.
2022-08-22 18:38:49 -04:00
..
acl_testing.go
catalog_testing.go
check_watcher.go
check_watcher_test.go build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
config_entries_testing.go
connect.go cleanup: consul mesh gateway type need not be pointer 2022-08-13 11:26:58 -05:00
connect_proxies.go
connect_proxies_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
connect_proxies_testing.go
connect_test.go cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
group_test.go connect: prefix tag with nomad.; merge into envoy_stats_tags; update docs 2022-04-14 12:52:52 -05:00
int_test.go allocrunner: refactor task coordinator (#14009) 2022-08-22 18:38:49 -04:00
namespaces_client.go build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
namespaces_client_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
self.go build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
self_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
service_client.go build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
service_client_test.go docs: add docs and tests for tagged_addresses 2022-05-31 13:02:48 -05:00
structs.go
testing.go
unit_test.go connect: prefix tag with nomad.; merge into envoy_stats_tags; update docs 2022-04-14 12:52:52 -05:00
version_checker.go
version_checker_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00