May append a new snapshot to the sequence.
(self, new_snapshot: Dict[str, str])
| 76 | self._snapshot = [] |
| 77 | |
| 78 | def append(self, new_snapshot: Dict[str, str]): |
| 79 | """May append a new snapshot to the sequence.""" |
| 80 | if not new_snapshot: |
| 81 | # Don't add an empty snapshot. |
| 82 | return |
| 83 | if not self._snapshot or new_snapshot != self._snapshot[-1]: |
| 84 | self._snapshot.append(new_snapshot) |
| 85 | |
| 86 | def max_running_trials(self) -> int: |
| 87 | """Outputs the max number of running trials at a given time. |
no outgoing calls