Set the run-related fields after the run execution.
(self, exitcode, output="", end_date=None)
| 2168 | self.save(update_fields=["run_start_date"]) |
| 2169 | |
| 2170 | def set_run_ended(self, exitcode, output="", end_date=None): |
| 2171 | """Set the run-related fields after the run execution.""" |
| 2172 | self.run_exitcode = exitcode |
| 2173 | self.run_output = output |
| 2174 | self.run_end_date = end_date or timezone.now() |
| 2175 | self.save(update_fields=["run_exitcode", "run_output", "run_end_date"]) |
| 2176 | |
| 2177 | def set_run_staled(self): |
| 2178 | """Set the execution as `stale` using a special 88 exitcode value.""" |