Before deletion of the run instance, try to stop the run execution.
(self, *args, **kwargs)
| 2231 | self.delete() |
| 2232 | |
| 2233 | def delete(self, *args, **kwargs): |
| 2234 | """ |
| 2235 | Before deletion of the run instance, try to stop the run execution. |
| 2236 | """ |
| 2237 | with suppress(redis.exceptions.ConnectionError, AttributeError): |
| 2238 | self.stop_run() |
| 2239 | |
| 2240 | return super().delete(*args, **kwargs) |
| 2241 | |
| 2242 | def append_to_log(self, message, is_multiline=False): |
| 2243 | """Append ``message`` to log field of run instance.""" |
no test coverage detected