mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Idle Hot Container Freeze/Preempt Support (#733)
* fn: freeze/unfreeze and eject idle under resource contention
This commit is contained in:
@@ -24,6 +24,14 @@ type cookie struct {
|
||||
m *Mocker
|
||||
}
|
||||
|
||||
func (c *cookie) Freeze(context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *cookie) Unfreeze(context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *cookie) Close(context.Context) error { return nil }
|
||||
|
||||
func (c *cookie) Run(ctx context.Context) (drivers.WaitResult, error) {
|
||||
|
||||
Reference in New Issue
Block a user