idmtools.registry.hook_specs module¶
Define a list of function only hook specs. Useful for simple plugins.
Copyright 2021, Bill & Melinda Gates Foundation. All rights reserved.
- idmtools.registry.hook_specs.idmtools_platform_pre_create_item(item: IEntity, kwargs) IEntity ¶
This callback is called by the pre_create of each object type on a platform. An item can be a suite, workitem, simulation, asset collection or an experiment.
- Parameters:
item –
kwargs – extra args
- Returns:
None
- idmtools.registry.hook_specs.idmtools_on_start()¶
Execute on startup when idmtools is first imported.
- Returns:
None
- idmtools.registry.hook_specs.idmtools_runnable_on_done(item: IRunnableEntity, **kwargs)¶
Called when a runnable item finishes when it was being monitored.
- Parameters:
item – Item that was running
**kwargs –
- Returns:
None
- idmtools.registry.hook_specs.idmtools_runnable_on_succeeded(item: IRunnableEntity, **kwargs)¶
Executed when a runnable item succeeds.
- Parameters:
item – Item that was running
**kwargs –
- Returns:
None
- idmtools.registry.hook_specs.idmtools_runnable_on_failure(item: IRunnableEntity, **kwargs)¶
Executed when a runnable item fails.
- Parameters:
item – Item that was running
**kwargs –
- Returns:
None