openfaas / faasd

A lightweight & portable faas engine
https://store.openfaas.com/l/serverless-for-everyone-else
MIT License
2.97k stars 213 forks source link

Fix sometimes the faas container cannot be started #357

Closed shivabohemian closed 5 months ago

shivabohemian commented 5 months ago

When obtaining the container information fails, the key for deleting the snapshot is incorrect

Description

Motivation and Context

How Has This Been Tested?

Types of changes

Checklist:

Commits:

Code:

Docs:

alexellis commented 5 months ago

What happened to thsi PR? Why was it closed?

https://github.com/openfaas/faasd/pull/358 seems to do less?

shivabohemian commented 5 months ago

Because it has a cyclic dependency.

alexellis commented 5 months ago

It would be helpful for the maintainers if you wrote a comment to explain why you're opening/closing PRs etc. Thanks

shivabohemian commented 5 months ago

I noticed there is a unified constants.go to maintain constants, which can prevent such suffix errors through this way of defining constants. Regrettably, there was a cyclic dependency that I didn't notice, so I have withdrawn the PR.