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:
parent
3ec3098e2f
commit
048413f09b
6 changed files with 25 additions and 63 deletions
|
|
@ -19,7 +19,6 @@
|
|||
│ [m[38;2;0;255;0m[48;2;0;0;0me[m[38;2;255;255;255m[48;2;0;0;0m - Edit the current file with an editor defined by -e, $EDITOR or $VISUAL. │
|
||||
│ [m[38;2;0;255;0m[48;2;0;0;0mn[m[38;2;255;255;255m[48;2;0;0;0m - Move to the next issue. │
|
||||
│ [m[38;2;0;255;0m[48;2;0;0;0mN[m[38;2;255;255;255m[48;2;0;0;0m - Move to the next issue of the current tool. │
|
||||
│ [m[38;2;0;255;0m[48;2;0;0;0mp[m[38;2;255;255;255m[48;2;0;0;0m - Pause workers. (toggle) │
|
||||
│ [m[38;2;0;255;0m[48;2;0;0;0mo[m[38;2;255;255;255m[48;2;0;0;0m - Order files by type, or by directory location. (toggle) │
|
||||
│ [m[38;2;0;255;0m[48;2;0;0;0mr[m[38;2;255;255;255m[48;2;0;0;0m - Refresh the currently selected report. │
|
||||
│ [m[38;2;0;255;0m[48;2;0;0;0mR[m[38;2;255;255;255m[48;2;0;0;0m - Refresh all reports of the current tool. │
|
||||
|
|
@ -32,7 +31,6 @@
|
|||
│ [m[38;2;255;255;255m[48;2;196;2;51m [m[38;2;255;255;255m[48;2;0;0;0m Problem │
|
||||
│ [m[38;2;255;255;255m[48;2;100;100;100m [m[38;2;255;255;255m[48;2;0;0;0m Not applicable │
|
||||
│ [m[38;2;255;255;255m[48;2;0;135;189m [m[38;2;255;255;255m[48;2;0;0;0m Running │
|
||||
│ [m[38;2;255;255;255m[48;2;255;211;0m [m[38;2;255;255;255m[48;2;0;0;0m Paused │
|
||||
│ [m[38;2;255;255;255m[48;2;200;0;200m [m[38;2;255;255;255m[48;2;0;0;0m Timed out │
|
||||
│ . Pending │
|
||||
│ [m[38;2;255;255;255m[48;2;196;2;51mE[m[38;2;255;255;255m[48;2;0;0;0m Error │
|
||||
|
|
@ -56,5 +54,7 @@
|
|||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||
[m[38;2;255;255;255m[48;2;76;76;76m [m[38;2;76;255;76m[48;2;76;76;76mh[m[38;2;255;255;255m[48;2;76;76;76melp [m[38;2;76;255;76m[48;2;76;76;76mq[m[38;2;255;255;255m[48;2;76;76;76muit [m[38;2;76;255;76m[48;2;76;76;76mtab[m[38;2;255;255;255m[48;2;76;76;76m:focus [m[38;2;76;255;76m[48;2;76;76;76mt[m[38;2;255;255;255m[48;2;76;76;76murn [m[38;2;76;255;76m[48;2;76;76;76ml[m[38;2;255;255;255m[48;2;76;76;76mog [m[38;2;76;255;76m[48;2;76;76;76me[m[38;2;255;255;255m[48;2;76;76;76mdit [m[38;2;76;255;76m[48;2;76;76;76mn[m[38;2;255;255;255m[48;2;76;76;76mext [m[38;2;76;255;76m[48;2;76;76;76mp[m[38;2;255;255;255m[48;2;76;76;76mause [m[38;2;76;255;76m[48;2;76;76;76mo[m[38;2;255;255;255m[48;2;76;76;76mrder [m[38;2;76;255;76m[48;2;76;76;76mr[m[38;2;255;255;255m[48;2;76;76;76mefresh [m[38;2;76;255;76m[48;2;76;76;76mf[m[38;2;255;255;255m[48;2;76;76;76mullscreen [m[38;2;76;255;76m[48;2;76;76;76mx[m[38;2;255;255;255m[48;2;76;76;76mdg-open [m[38;2;76;171;208m[48;2;76;76;76mrunning[m[38;2;255;255;255m[48;2;76;76;76m • directory [m
|
||||
[m[38;2;255;255;255m[48;2;76;76;76m [m[38;2;76;255;76m[48;2;76;76;76mh[m[38;2;255;255;255m[48;2;76;76;76melp [m[38;2;76;255;76m[48;2;76;76;76mq[m[38;2;255;255;255m[48;2;76;76;76muit [m[38;2;76;255;76m[48;2;76;76;76mtab[m[38;2;255;255;255m[48;2;76;76;76m:focus [m[38;2;76;255;76m[48;2;76;76;76mt[m[38;2;255;255;255m[48;2;76;76;76murn [m[38;2;76;255;76m[48;2;76;76;76ml[m[38;2;255;255;255m[48;2;76;76;76mog [m[38;2;76;255;76m[48;2;76;76;76me[m[38;2;255;255;255m[48;2;76;76;76mdit [m[38;2;76;255;76m[48;2;76;76;76mn[m[38;2;255;255;255m[48;2;76;76;76mext [m[38;2;76;255;76m[48;2;76;76;76mo[m[38;2;255;255;255m[48;2;76;76;76mrder [m[38;2;76;255;76m[48;2;76;76;76mr[m[38;2;255;255;255m[48;2;76;76;76mefresh [m[38;2;76;255;76m[48;2;76;76;76mf[m[38;2;255;255;255m[48;2;76;76;76mullscreen [m[38;2;76;255;76m[48;2;76;76;76mx[m[38;2;255;255;255m[48;2;76;76;76mdg-open directory [m
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue