Generate running information for jobs in pipen pipelines.
Including session info (packages and versions), time, and device info.
pip install -U pipen-runinfoThe plugin is registered via entrypoints. It's by default enabled. To disable it: plugins=[..., "no:runinfo"], or uninstall this plugin.
runinfo_lang: The name of the language to run the job script for session info. Default isNone, which means it will be inferred from theproc.langThis should be a process-level option, unless you only have one single process in your pipeline.runinfo_path: Whether to include paths for the modules in the session information. Default isTrue. This option could be either specified in the process-level or the pipeline-level. Only works forpython.runinfo_submod: Whether to include submodules in the session information. Default isFalse. This option could be either specified in the process-level or the pipeline-level. Only works forpython.
python, R, bash, and fish.
The plugin will generate 3 files in the job directory of the pipeline.
The session information of the job, including the interpreter, packages and their versions.
Generates a TSV file with the following columns:
Name: The name of the module, or python itself__version__: The version fetched bymodule.__version__ormodule.versionimportlib.metadata: The version fetched byimportlib.metadata.version(package)Path: The path of the module (only ifruninfo_pathisTrue)
Generates a text file sessionInfo() output.
Generates a TSV file with the following columns:
SHELL: The value of$SHELLBASH_VERSION: The value of$BASH_VERSIONBASH_ARGV0: The value of$BASH_ARGV0BASH_SOURCE: The value of$BASH_SOURCEproc-exe: The real path of the executable from/proc/<pid>/exeproc-exe-version: The version of the executable from/proc/<pid>/exe --version
Generates a TSV file with the following columns:
SHELL: The value of$SHELLFISH_VERSION: The value of$FISH_VERSIONproc-exe: The real path of the executable from/proc/<pid>/exeproc-exe-version: The version of the executable from/proc/<pid>/exe --version
The time spent on the job, and more, generated by time -v command.
The device (cpu and memory) information of the job, generated by lscpu/lsmem command.