Remove pause feature.

- Wasn't being used very much.
- The background workers should only be using idle cpu, so shouldn't
  have any outward effect.
- Could also use less workers if necessary.
This commit is contained in:
Andrew Hamilton 2019-12-21 12:17:13 +10:00
parent 3ec3098e2f
commit 048413f09b
6 changed files with 25 additions and 63 deletions

View file

@ -19,7 +19,6 @@
e - Edit the current file with an editor defined by -e, $EDITOR or $VISUAL. │
n - Move to the next issue. │
N - Move to the next issue of the current tool. │
p - Pause workers. (toggle) │
o - Order files by type, or by directory location. (toggle) │
r - Refresh the currently selected report. │
R - Refresh all reports of the current tool. │
@ -32,7 +31,6 @@
  Problem │
  Not applicable │
  Running │
  Paused │
  Timed out │
│ . Pending │
E Error │
@ -56,5 +54,7 @@
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
 help quit tab:focus turn log edit next pause order refresh fullscreen xdg-open running • directory 
 help quit tab:focus turn log edit next order refresh fullscreen xdg-open directory 

View file

@ -30,7 +30,7 @@ class WorkerTestCase(unittest.TestCase):
def test_run_job(self):
loop = asyncio.get_event_loop()
compression = "none"
worker_ = worker.Worker(False, False, compression)
worker_ = worker.Worker(False, compression)
loop.run_until_complete(worker_.create_process())
worker_.process.stdin.write(f"{compression}\n".encode("utf-8"))
future = worker_.run_tool("foo", tools.metadata)