You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a relative path is passed to a File parameter of a process, it should probably be converted to an absolute path before going to the execution engine.
should the conversion happen at start time?
A related issue is: if a process writes files to its current directory, what do these files become once execution is finished? We should probably force the working directory of workers to be in a temporary directory that is deleted after execution
The text was updated successfully, but these errors were encountered:
In order to be as close as what a local Python script does with relative path, it is necessary to convert relative paths to absolute paths on the client side because this is where the current directory may have a meaning. If we use controllers callbacks to check all path parameters modification we would slow down all processes for a very rare event. Therefore, resolving relative path on process start seems to be the good moment.
For the second point, I think we cannot be protected from a process doing scrap. It can write to current directory, to /tmp or any directory and leave files here. I am not in favor of creating a temporary directory for every job just to protect the very few of them that could write in current directory. But if it is necessary, it should be allowed to enable/disable it in config.
When a relative path is passed to a
File
parameter of a process, it should probably be converted to an absolute path before going to the execution engine.start
time?A related issue is: if a process writes files to its current directory, what do these files become once execution is finished? We should probably force the working directory of workers to be in a temporary directory that is deleted after execution
The text was updated successfully, but these errors were encountered: