diff --git a/internal/runner/manager.go b/internal/runner/manager.go index 3b68878..ce18299 100644 --- a/internal/runner/manager.go +++ b/internal/runner/manager.go @@ -261,6 +261,10 @@ func (m *NomadRunnerManager) onAllocationAdded(alloc *nomadApi.Allocation) { func (m *NomadRunnerManager) onAllocationStopped(alloc *nomadApi.Allocation) { log.WithField("id", alloc.JobID).Debug("Runner stopped") + if nomad.IsEnvironmentTemplateID(alloc.JobID) { + return + } + environmentID, err := nomad.EnvironmentIDFromRunnerID(alloc.JobID) if err != nil { log.WithError(err).Warn("Stopped allocation can not be handled")