[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2826: CLI: allow dispatch functions to return a Deferred
Tahoe-LAFS
trac at tahoe-lafs.org
Fri Sep 9 17:37:50 UTC 2016
#2826: CLI: allow dispatch functions to return a Deferred
--------------------+------------------------
Reporter: warner | Owner: warner
Type: task | Status: new
Priority: normal | Milestone: 1.12.0
Component: code | Version: 1.11.0
Keywords: | Launchpad Bug:
--------------------+------------------------
This will enable #2490 to run (async) Tor operations during `tahoe create-
node --listen=tor`. Currently all CLI dispatch functions must finish
synchronously.
The file-operation subcommands, which use blocking `httplib` calls, must
be run from unit tests under `deferToThread`. #2825 is about fixing that,
but this ticket will do some cleanup that will help. Specifically it will
move the deferToThread down into `runner.py`, using the thread only on the
subcommands which really need it. After this is fixed, there should be no
deferToThread calls in the unit tests.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2826>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list