vmware-archive / dispatch

Dispatch is a framework for deploying and managing serverless style applications.
http://dispatchframework.io
Apache License 2.0
532 stars 58 forks source link

Clean up leaked images and FaaS deployments #579

Closed rjew closed 6 years ago

rjew commented 6 years ago

Fixes #564, Fixes #219

There are still some images being leaked when creating a function - the function manager pulls down "dispatch images" when creating a function. Deleting these could cause a race condition if there is also a function being created at the same time which depends on that image.

TODO Delete images from the docker registry when a function/image is deleted

rjew commented 6 years ago

Sure I'll work on adding one.

rjew commented 6 years ago

If someone tries to exec a function while it is being deleted, it shouldn't work since a function will only run if it is in status READY so the order shouldn't matter.