src/python/detectors/semaphore_overflow_prevention/semaphore_overflow_prevention.py [8:17]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    jobs = multiprocessing.JoinableQueue()
    while True:
        try:
            # Noncompliant: fails to call JoinableQueue.task_done()
            # for each task removed from the JoinableQueue.
            image, image_name, tag = jobs.get()
            formatted_es_url = es_url.format(image_name)
            files = {'file': image.content, 'tag': tag}
            r = requests.post(formatted_es_url, files=files)
        finally:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/python/detectors/semaphore_overflow_prevention/semaphore_overflow_prevention.py [26:33]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    jobs = multiprocessing.JoinableQueue()
    while True:
        try:
            image, image_name, tag = jobs.get()
            formatted_es_url = es_url.format(image_name)
            files = {'file': image.content, 'tag': tag}
            r = requests.post(formatted_es_url, files=files)
        finally:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



