(job, connection, type, value, traceback)
| 104 | |
| 105 | |
| 106 | def 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 | |
| 118 | def enqueue_pipeline(pipeline_id): |
nothing calls this directly
no test coverage detected