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

Method delete

vulnerabilities/models.py:2233–2240  ·  view source on GitHub ↗

Before deletion of the run instance, try to stop the run execution.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

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

Callers 6

delete_runMethod · 0.95
update_pipeline_scheduleFunction · 0.45
toggleFoldFunction · 0.45
toggleColumnFoldFunction · 0.45
toggleFoldFunction · 0.45
toggleColumnFoldFunction · 0.45

Calls 1

stop_runMethod · 0.95

Tested by

no test coverage detected