Skip to main content

Generate running information for jobs in pipen pipelines

Project description

pipen-runinfo

Generate running information for jobs in pipen pipelines.

Including session info (packages and versions), time, and device info.

Install

pip install -U pipen-runinfo

Enable/Disable the plugin

The plugin is registered via entrypoints. It's by default enabled. To disable it: plugins=[..., "no:runinfo"], or uninstall this plugin.

Plugin options

  • runinfo_lang: The name of the language to run the job script for session info. Default is None, which means it will be inferred from the proc.lang This 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 is True. This option could be either specified in the process-level or the pipeline-level. Only works for python.
  • runinfo_submod: Whether to include submodules in the session information. Default is False. This option could be either specified in the process-level or the pipeline-level. Only works for python.

Supported languages for session info

python, R, bash, and fish.

Usage

The plugin will generate 3 files in the job directory of the pipeline.

job.runinfo.session

The session information of the job, including the interpreter, packages and their versions.

Python

Generates a TSV file with the following columns:

  • Name: The name of the module, or python itself
  • __version__: The version fetched by module.__version__ or module.version
  • importlib.metadata: The version fetched by importlib.metadata.version(package)
  • Path: The path of the module (only if runinfo_path is True)

R

Generates a text file sessionInfo() output.

Bash

Generates a TSV file with the following columns:

  • SHELL: The value of $SHELL
  • BASH_VERSION: The value of $BASH_VERSION
  • BASH_ARGV0: The value of $BASH_ARGV0
  • BASH_SOURCE: The value of $BASH_SOURCE
  • proc-exe: The real path of the executable from /proc/<pid>/exe
  • proc-exe-version: The version of the executable from /proc/<pid>/exe --version

Fish

Generates a TSV file with the following columns:

  • SHELL: The value of $SHELL
  • FISH_VERSION: The value of $FISH_VERSION
  • proc-exe: The real path of the executable from /proc/<pid>/exe
  • proc-exe-version: The version of the executable from /proc/<pid>/exe --version

job.runinfo.time

The time spent on the job, and more, generated by time -v command.

job.runinfo.device

The device (cpu and memory) information of the job, generated by lscpu/lsmem command.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pipen_runinfo-0.9.0a1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pipen_runinfo-0.9.0a1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file pipen_runinfo-0.9.0a1.tar.gz.

File metadata

  • Download URL: pipen_runinfo-0.9.0a1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for pipen_runinfo-0.9.0a1.tar.gz
Algorithm Hash digest
SHA256 a2d83f6a81d3e932d0776db2e4ea4646be70ba775eeec7271b8da77f75d3b9d3
MD5 6fc6b3077acf48338c027e8e189b90ad
BLAKE2b-256 4bd3c2b513a330b436c2309aefe96bcf5b6b527a2cb0c6cf770a95f23048d28b

See more details on using hashes here.

File details

Details for the file pipen_runinfo-0.9.0a1-py3-none-any.whl.

File metadata

  • Download URL: pipen_runinfo-0.9.0a1-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for pipen_runinfo-0.9.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 d49876cd094b12be2a22f1a302337389c1057ebf20c62d80140fe34b118bbf48
MD5 5f401240925cee00fd5c65d11c4797fd
BLAKE2b-256 6565b8146786bf6c28ec01b1098ce2721911cea103649734b83e2cb0da760c77

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page