aces / cbrain

CBRAIN is a flexible Ruby on Rails framework for accessing and processing of large data on high-performance computing infrastructures.
GNU General Public License v3.0
71 stars 42 forks source link

Add BoutiquesSaveStdOutStdErr module to save stderr and/or sdtout #1305

Closed natacha-beck closed 1 year ago

natacha-beck commented 1 year ago

This module allow to save the stdout and stderr files of a Boutiques task

To use this module, you need to add the following lines in the descriptor:

"custom_module_info": {
  "BoutiquesSaveStdOutStdErr": {
    "stdout_output_dir": "",
    "stderr_output_dir": "path/to/dir"
  }
}

In case of a MultilevelSshDataProvider the "path/to/dir" will be use to save the output. In case of a no MultilevelSshDataProvider the "path/to/dir" will be ignored.

The value of the key "stdout_output_dir" and "stderr_output_dir" can be set to an empty string, in this situation the files will be saved directly in the root folder of the DataProvider.

prioux commented 1 year ago

You are missing the symbolic link on the Bourreau side.

prioux commented 1 year ago

Both files you create seem to receive the exact same name, you shoudl name out with out and the other with err

prioux commented 1 year ago

Please read and adjust the entire comment block for safe_logfile_find_or_new