Skip to content

commando: make custommsg hook async. - #348

Merged
rustyrussell merged 2 commits into
lightningd:masterfrom
rustyrussell:command-async
Mar 17, 2022
Merged

commando: make custommsg hook async.#348
rustyrussell merged 2 commits into
lightningd:masterfrom
rustyrussell:command-async

Conversation

@rustyrussell

@rustyrussell rustyrussell commented Mar 16, 2022

Copy link
Copy Markdown
Collaborator

Otherwise it blocks everything while it's working, which can be a
while for a slow command.

Fixes: #347 (I think?)
Signed-off-by: Rusty Russell rusty@rustcorp.com.au

Otherwise it blocks everything while it's working, which can be a
while for a slow command.

Fixes: lightningd#347
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
@rustyrussell
rustyrussell marked this pull request as ready for review March 16, 2022 08:57
@jb55

jb55 commented Mar 16, 2022

Copy link
Copy Markdown

This doesn't fix #347 but it doesn't hurt anything either...

@rustyrussell

Copy link
Copy Markdown
Collaborator Author

Reproduced. You're right... hacking...

We use multiprocessing for this, because the pyln-client RPC
command api doesn't support async.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
@rustyrussell

Copy link
Copy Markdown
Collaborator Author

Fixed.

@rustyrussell
rustyrussell merged commit 5b2dd9a into lightningd:master Mar 17, 2022
@jb55

jb55 commented Mar 17, 2022 via email

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

commando message hook blocking?

2 participants