Set the number of times to repeat the workflow. Args: repeat_times (int): number of times to repeat the workflow (if repeatable). run_id_base (int): base run_id for setting run_id in experiences.
(self, repeat_times: int, run_id_base: int)
| 133 | raise NotImplementedError |
| 134 | |
| 135 | def set_repeat_times(self, repeat_times: int, run_id_base: int) -> None: |
| 136 | """ |
| 137 | Set the number of times to repeat the workflow. |
| 138 | Args: |
| 139 | repeat_times (int): number of times to repeat the workflow (if repeatable). |
| 140 | run_id_base (int): base run_id for setting run_id in experiences. |
| 141 | """ |
| 142 | raise NotImplementedError( |
| 143 | "set_repeat_times() must be implemented for a repeatable workflow." |
| 144 | ) |
| 145 | |
| 146 | def run(self) -> List[Experience]: |
| 147 | """Run workflow and return a list of experiences.""" |