Mentions légales du service

Skip to content

Move pybatsim to Batsim 2.0 api

MERCIER Michael requested to merge bebida into master

Merge changes made in the process of creating the Bebida scheduler and in parallel move to Batsim 2.0 api.

Basically, I made this merge request for you @lackner to see all the changes I have made. Here is a list of the main changes that may have an impact on your code: In batsim.py:

  • Add a logger instead of prints
  • Use Procset (which is fast and tested) instead of home made intervals
  • Manage resources as a dict instead of a list
  • JobKilled do not call jobComplete anymore (because batsim now send the killed jobs in JobComplete

In launcher I changed some default parameters for my convenience but we can argue on that :)

For the rest:

  • Debug resources: resource 0 was excluded (if my_variable is a bad practice, specify is None make it non ambiguous)
  • Debug jobs: job complete was called on all jobs instead of the completed jobs
  • Add profile and parameters to fit to Batsim 2.0 new API
Edited by MERCIER Michael

Merge request reports