mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
disconnected clients: Add reconnect task event (#12133)
* Add TaskClientReconnectedEvent constant * Add allocRunner.Reconnect function to manage task state manually * Removes server-side push
This commit is contained in:
committed by
DerekStrickland
parent
97ce949f0e
commit
35752655b0
@@ -36,6 +36,11 @@ func (m *MockStateUpdater) AllocStateUpdated(alloc *structs.Allocation) {
|
||||
m.mu.Unlock()
|
||||
}
|
||||
|
||||
// PutAllocation satisfies the AllocStateHandler interface.
|
||||
func (m *MockStateUpdater) PutAllocation(alloc *structs.Allocation) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
// Last returns a copy of the last alloc (or nil) update. Safe for concurrent
|
||||
// access with updates.
|
||||
func (m *MockStateUpdater) Last() *structs.Allocation {
|
||||
|
||||
Reference in New Issue
Block a user