# pymatgen.io.abinit.scheduler_error_handlers module¶

class SchedulerErrorHandler(scheduler_adapter, application_adapter=None, err_file='queue.err', out_file='queue.out', run_err_file='run.err', batch_err_file='batch.err')[source]

Bases: custodian.custodian.ErrorHandler

Custodian error handler for scheduler related errors
scheduler_adapter takes the scheduler, it should at least provide a .name attribute indentifying the scheduler, currently ‘slurm’ is supported. If the scheduler adapter also provides the methods defined in CorrectorProtocolScheduler, problems can also be fixed by .apply_corrections. If a application_adapter is also provided and it provides the methods defined in CorrectorProtocolApplication problems can also be fixed a the level of the application, e.g. making the application require less memory.
apply_corrections()[source]

Method to directly apply the corrections.

check()[source]

Check for the defined errors, put all found errors in self.errors, return True if any were found False if no errors were found

correct()[source]

For custodian compatibility

return_corrections()[source]