Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared files and flushing #627

Open
Shillaker opened this issue Mar 18, 2022 · 1 comment
Open

Shared files and flushing #627

Shillaker opened this issue Mar 18, 2022 · 1 comment
Assignees

Comments

@Shillaker
Copy link
Collaborator

Shillaker commented Mar 18, 2022

Issue received via email, shared for others' potential benefit:

...

I’m trying to explore and use your FaaSM project to do some research work. But I met some troubles, which I spent some time on it but not work.

First, How to access shared files in Serverless function, e.g, I upload a file by “ curl -X put -H “FilePath: test.txt” localhost:8002/file -T test.txt “. How can I access test.txt in Serverless function? I tried to invoke shared_file, which is a demo function, with a input-data “test.txt”. But it did not work.

Second, How to immediately update the function has beed uploaded? For example, I rewrite a Serverless function, and upload it to run. But sometimes, older function is revoked rather the one just re-compiled and uploaded. And "inv func.flush” does not work.

...

@Shillaker
Copy link
Collaborator Author

Documentation on both topics has been updated in #625

The page on shared files is here.

Examples of uploading, modifying, flushing and invoking a function can be found on the C++ function page.

@Shillaker Shillaker self-assigned this Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant