Skip to content

Adding a warning/info message when nothing was parallelized successfully #725

@angelhof

Description

@angelhof

It might be a good idea to add a few warning/info messages to help set user expectations when running PaSh. In particular to give some intuition to the user about why they didn't get any benefits through PaSh. Some categories that I can think of which are highly relevant are:

  1. No part of the input script was parallelized. Do you have annotations for the commands in your scripts? Are you using many custom functions?
  2. The script execution was very short (<5s) to see benefits with PaSh. Maybe try running a script that takes longer?
  3. Some fragments of the input script were parallelized, but none of them took more than 1s of execution so PaSh hasn't managed to speed things up.
    We could follow up all these messages with a suggestion to use -d 1 to see more about what was parallelized and what not and get some guidance into the issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions