My problem is that I am running ComfyUI server in a docker container and when the container is stopped, the saved_workflows are deleted (as they are not saved in a persistent folder).
Instead of saving the workflows in the project's root directory, I think you should save them inside the comfyUI config folder, defined in folder_paths.folder_names_and_paths["configs"].
My problem is that I am running ComfyUI server in a docker container and when the container is stopped, the saved_workflows are deleted (as they are not saved in a persistent folder).
Instead of saving the workflows in the project's root directory, I think you should save them inside the comfyUI config folder, defined in folder_paths.folder_names_and_paths["configs"].
The code would be something similar to