Skip to content

Cache not flushing completely with Python and C++ functions #773

@dinhngtu

Description

@dinhngtu

Hello,

I've been trying out the Faasm platform and would like to ask a couple questions concerning caching.

I tried to update a Python function that has already been uploaded but haven't found a way to do it.
When I query the upload service directly, I get the new function code, but if I run the Python function or read its file content (/pyfuncs/python/test/function.py), the file contents remain that of the old version.
I've tried various flushing methods (inv func.flush from the cpp container, inv flush.all with faasm-cli, restarting the cluster) without success.
I'd like to know how to flush the cached code of a Python function.

I've also tried C++ functions.
After updating a function, the flushing (with func.flush) works, but only for the first execution of that function.
The second execution of the function reverts to the old code.
I had to restart all workers to completely flush the function.
Is there an alternative method to flush C++ functions without having to restart the worker?

I'm on Faasm 0.9.9 at the moment.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions