Function marked as ready, but can't actually execute yet (OpenFaaS)
Bug Report
I was writing a simple script to measure the time it takes to run a function. Part of this entailed writing some code to create the function and waiting until dispatch marked it as ready before executing it. However, even after it was marked ready, an immediate attempt to execute it hangs in the CREATING state.
Expected behavior
I would expect that I would be able to immediately be able to execute a function after it was marked ready.
Current behavior
I have to wait ~5 seconds after a function is marked ready before executing it; otherwise the execution will hang.
Steps to reproduce
Create a function with OpenFaaS as the FaaS driver and then execute it immeadiatly after it is marked as ready.
Impact
- [ ] Low - Annoyance, but does not impact business or functionality
- [x] Medium - Issue can be worked around, but is causing pain
- [ ] High - Blocker
Possible solution
Your Environment
- Dispatch CLI version (or git commit): commit 00e7e24e14666bf5d7cadde1dd8c338d3678f7cd
- Dispatch Chart version (or image[s] tag): v0.1.16-2dbabfd
- Operating System and version: OSX 10.12
- Kubernetes version (and distribution): 1.10
- Etc (any other useful environmental information): Running k8s on GKE
This seems to be resolved upstream. Can the issue be closed?