MCPcopy Create free account
hub / github.com/ElementsProject/lightning / make_notify

Function make_notify

tests/plugins/notify.py:10–19  ·  view source on GitHub ↗
(plugin, request, **kwargs)

Source from the content-addressed store, hash-verified

8
9@plugin.method("make_notify")
10def make_notify(plugin, request, **kwargs):
11 plugin.notify_message(request, "Beginning stage 1")
12 for i in range(100):
13 plugin.notify_progress(request, i, 100, stage=0, stage_total=2)
14 time.sleep(0.01)
15 plugin.notify_message(request, "Beginning stage 2", level='debug')
16 for i in range(10):
17 plugin.notify_progress(request, i, 10, stage=1, stage_total=2)
18 time.sleep(0.1)
19 return "This worked"
20
21
22plugin.run()

Callers

nothing calls this directly

Calls 2

notify_messageMethod · 0.80
notify_progressMethod · 0.80

Tested by

no test coverage detected