Reset the run and set `run_start_date` fields before starting run execution.
(self)
| 2162 | self.save(update_fields=["vulnerablecode_version", "vulnerablecode_commit"]) |
| 2163 | |
| 2164 | def set_run_started(self): |
| 2165 | """Reset the run and set `run_start_date` fields before starting run execution.""" |
| 2166 | self.reset_run() |
| 2167 | self.run_start_date = timezone.now() |
| 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.""" |