Is it possible to upload a very small (< 100k) file and execute with runkit?

Is it possible to upload a very small (< 100k) file and execute with runkit? Or is there a workaround for it to read a file?

Hi there,

Your program can download a file if it’s hosted somewhere, then you can manipulate and use it however you want.

- Randy

1 Like

Hi Randy, that’s excellent. Does there is any restriction for the file system? Like automatically clean the cache files etc.?

That’s a good question, and the answer is it depends.

If you’re using RunKit as a notebook, then each cell is checkpointed, and RunKit does its best to restore your checkpointed notebooks when you add new cells. In other words, if you download a file and write it to disk in the first cell, then cell 4 should be able to read it from disk. If the checkpoint cannot be restored for some reason, then the notebook will run from the top and the file will need to be redownloaded.

If you’re using RunKit for an endpoint, you should assume your endpoint is stateless. You can assume the state of the file system will not be wiped during the lifetime of the request your endpoint is handling. Anything else may work, but it’s not guaranteed.

Hope that helps. Please let me know if I can clarify anything else!

- Randy

Hi Randy, it is clearly enough for me. I’m still new using your great product and I like it.