def process_all(request): # move that to a Manager processed_crashes = ProcessedCrash.objects.values_list('crash_id') print(processed_crashes) crashes = models.UploadedCrash.objects.exclude(crash_id__in=processed_crashes) done = [] for crash in crashes: procescor = MinidumpProcessor() procescor.process(crash.crash_id) done.append(crash.crash_id) return HttpResponse("\n".join(done))
def process(request, crash_id): processor = MinidumpProcessor() processor.process(crash_id) return HttpResponse('CrashID=' + crash_id)