MCPcopy Create free account
hub / github.com/RocketMap/RocketMap / wh_updater

Function wh_updater

pogom/webhook.py:32–44  ·  view source on GitHub ↗
(args, q)

Source from the content-addressed store, hash-verified

30
31
32def 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)

Callers

nothing calls this directly

Calls 1

send_to_webhookFunction · 0.85

Tested by

no test coverage detected