500ca74f38
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
22 lines
337 B
Go
22 lines
337 B
Go
package supervisor
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/Sirupsen/logrus"
|
|
)
|
|
|
|
type OOMTask struct {
|
|
baseTask
|
|
ID string
|
|
}
|
|
|
|
func (s *Supervisor) oom(t *OOMTask) error {
|
|
logrus.WithField("id", t.ID).Debug("containerd: container oom")
|
|
s.notifySubscribers(Event{
|
|
Timestamp: time.Now(),
|
|
ID: t.ID,
|
|
Type: "oom",
|
|
})
|
|
return nil
|
|
}
|