Skip to content

WattAMeter v0.7.3

Choose a tag to compare

@weslleyspereira weslleyspereira released this 21 Nov 04:32
· 58 commits to main since this release

Improve SLURM utilities and examples

  • Improve the signal handling
    • Remove USR1 from the killing signals in WattAMeter. Not needed.
    • Python CLI ignores signals during cleanup. Useful because Slurm seems to send multiple TERM signals during timeout
    • wattameter.sh::on_exit sends INT instead of TERM signals to Python CLI. It finishes cleaner with the change
    • Calls scancel with signal INT and only for the SLURM step relative to wattameter. It finishes cleaner with the change
    • Wait after calling scancel. That is necessary otherwise Slurm will send a termination signal to all processes
  • wattawait.sh:
    • Use optional arguments with flags.
    • Adds quiet mode
  • wattameter.sh:
    • Only parse RUN_ID and SUFFIX. Forward the remaining arguments directly to the Python CLI.
  • Create a slurm.sh utils file with the commands start_wattameter and stop_wattameter.
    • It adds variables WATTAMETER_N_STARTED_STEPS and WATTAMETER_SLURM_STEP_IDS to the shell session.
  • Update examples and tests accordingly

Full Changelog: v0.7.2...v0.7.3