(args, q)
| 30 | |
| 31 | |
| 32 | def wh_updater(args, q): |
| 33 | # The forever loop |
| 34 | while True: |
| 35 | try: |
| 36 | # Loop the queue |
| 37 | while True: |
| 38 | whtype, message = q.get() |
| 39 | send_to_webhook(whtype, message) |
| 40 | if q.qsize() > 50: |
| 41 | log.warning("Webhook queue is > 50 (@%d); try increasing --wh-threads", q.qsize()) |
| 42 | q.task_done() |
| 43 | except Exception as e: |
| 44 | log.exception('Exception in wh_updater: %s', e) |
nothing calls this directly
no test coverage detected