register_step

Contents

register_step#

rapidtools.jobs.register_step(step_type: StepType, replace: bool = False) → StepType[source]#

Make a step type available to job files.

Parameters:
  • step_type (StepType) – The step type.

  • replace (bool) – Allow replacing a registered type of the same name.

Returns:

StepType – step_type, so the call can be used inline.

Raises:

ValueError – If the name is taken and replace is False.