mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Merge pull request #191 from fnproject/fix-memory-limits
fix task memory
This commit is contained in:
@@ -263,6 +263,10 @@ func routeWithFuncFile(c *cli.Context, ff *funcfile, rt *fnmodels.Route) error {
|
||||
if rt.Type == "" && ff.Type != nil && *ff.Type != "" {
|
||||
rt.Type = *ff.Type
|
||||
}
|
||||
if ff.Memory != nil {
|
||||
rt.Memory = *ff.Memory
|
||||
}
|
||||
// TODO idle_timeout? headers? config? why is a func file not a yaml unmarshal of a route?
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user