mockslurm.process_db¶
Implements the access to a “slurm database”, stored in a HDF5 file.
HDF5 files are locked during access, which provides a convenient method to not have several process modifying the same database easily
Functions
|
Append a job to the database |
|
Deletes the database file. |
Return a path to the location of the mock database hdf5 file. |
|
|
Get the Database as a dataset in the HDF5 file |
|
Open the database HDF5 file in append mode. |
|
Get a mask selecting the DB rows where the field values are equal to fields_values values. |
|
Open file as an HDF5 file in mode. |
|
Update the value of key in the database, at index |
|
Update db_dict missing fields with the default value in the database |
Classes
|
|
|