Merge pull request #191 from fnproject/fix-memory-limits

fix task memory
This commit is contained in:
Reed Allman
2017-08-07 10:44:23 -07:00
committed by GitHub
12 changed files with 62 additions and 73 deletions

View File

@@ -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
}