Skip to content

Better CLI predict integration with sbatch #40

@troycomi

Description

@troycomi

The current predict output is very informative, but not super useful as input to sbatch. A user would have to capture the output, parse out the time and memory, then make their own sbatch command. Some options I'm thinking about:

  • Set an environment variable to hold the sbatch options. Then the user would invoke like sbatch $SLURMISE_ESTIMATES script.sbatch
  • Set two variables, one for time and one for memory
  • Add a parsable option to output TIME|MEMORY or similar to simplify extracting with a bash-ism

Overall, it feels a little clunky to have to determine which command will run, predict the resources, then submit the command. Maybe including an example of dynamically building the sbatch script or something in the readme will be helpful as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions