Issue: When my app creates files on the filesystem the files are not synced to DFS.
Root cause: This behaviour is by design. Apps are not supposed to be able to sync files back to the Domino project saved on dfs . This decision prevents the app from making any changes to the project files/code it is running from. As Domino is quite a flexible platform there are ways around this.
Solution: In this article here we are reviewing the option of using dominodatalab python library to upload the files for us to the project via calls to the Domino API. However this option will require some change to your code to integrate the sync.
Alternatively it is possible to use Domino Datasets for this purpose. Which then requires very little to no changes to your app code. Since Domino Datasets are presented as a network share mounts to the container of your App, any files written by the App over the dataset will be immediately visible (synced) to the dataset filesystem.
To use the datasets attached to your project you will have to first find the mount path. You can see this under your project, data page:
This path will be presented to any jobs/apps/workspaces runs. And as such you can directly use the path in your code as an output location.
Comments
0 comments
Please sign in to leave a comment.