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

Function set_run_failure

vulnerabilities/tasks.py:106–115  ·  view source on GitHub ↗
(job, connection, type, value, traceback)

Source from the content-addressed store, hash-verified

104
105
106def set_run_failure(job, connection, type, value, traceback):
107 from vulnerabilities.models import PipelineRun
108
109 try:
110 run = PipelineRun.objects.get(run_id=job.id)
111 except PipelineRun.DoesNotExist:
112 logger.info(f"Failed to get the run instance with job.id={job.id}")
113 return
114
115 run.set_run_ended(exitcode=1, output=f"value={value} trace={traceback}")
116
117
118def enqueue_pipeline(pipeline_id):

Callers

nothing calls this directly

Calls 2

set_run_endedMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected