MCPcopy Create free account
hub / github.com/aboutcode-org/vulnerablecode / set_run_started

Method set_run_started

vulnerabilities/models.py:2164–2168  ·  view source on GitHub ↗

Reset the run and set `run_start_date` fields before starting run execution.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers 4

execute_pipelineFunction · 0.80
setUpMethod · 0.80

Calls 2

reset_runMethod · 0.95
saveMethod · 0.45

Tested by 3

setUpMethod · 0.64