Jim Paris
cbc7a7dd55
Start Python 3 conversion
2 years ago
Jim Paris
38c3e67cf9
Fix long lines
9 years ago
Jim Paris
7f05a0fb62
Switch to bash for Unicode tests
9 years ago
Jim Paris
81c2ad07d4
More robust checking in 09_info test
9 years ago
Jim Paris
3588e843ac
Replace burnP5 with dd
9 years ago
Jim Paris
9309fd9b57
Change -V option to -v everywhere
9 years ago
Jim Paris
21bd1bd050
Always print header, even if no processes
9 years ago
Jim Paris
cafdfce4f0
Add nilmrun-ps, -kill, and -run commands
9 years ago
Jim Paris
477c27a4e6
Clean up temp dirs and processes at exit
9 years ago
Jim Paris
bed26e099b
Put each code in its own dir; save args too
9 years ago
Jim Paris
9224566f9b
More robust process killing
9 years ago
Jim Paris
a8ecad9329
Use NilmDB serializer for ProcessManager
9 years ago
Jim Paris
5b878378f3
Translate UTF-8 in command output more robustly
9 years ago
Jim Paris
5cd38f1ba9
Don't spin so fast in tests while waiting
9 years ago
Jim Paris
d7551bde0b
Make 'args' optional to /run/code
9 years ago
Jim Paris
40fd377a38
Remove 'name' from spawned processes
9 years ago
Jim Paris
6e7f3ac704
Remove nilm-trainola script
9 years ago
Jim Paris
29adb47a33
Fix test order
9 years ago
Jim Paris
7c605a469a
Cleanup dependencies
9 years ago
Jim Paris
f5225f88f9
Add max CPU percentage
9 years ago
Jim Paris
32e59310ef
Fix for dead processes
9 years ago
Jim Paris
5a33ef48cc
Add /process/info request
9 years ago
Jim Paris
18a5cd6334
Improve boolean parameter parsing
9 years ago
Jim Paris
7ec4d60d38
Fix WSGI docs
9 years ago
Jim Paris
b2bdf784ac
Make test URLs relative
9 years ago
Jim Paris
e0709f0d17
Remove multiprocessing due to mod_wsgi incompatibility; use subprocess
Multiprocessing and Apache's mod_wsgi don't play nicely. Switch to
manually managing processes via subprocess.Popen etc instead. When
running arbitrary code, we write it to an external file, and running
functions directly is no longer supported.
9 years ago
Jim Paris
18d3cff772
Update WSGI docs
9 years ago
Jim Paris
a7b9656916
Remove parameters from status output
9 years ago
Jim Paris
2e9ec63675
Don't catch SystemExit from a subprocess
9 years ago
Jim Paris
6d295b840a
Delete trainola; it will live in nilmtools repo
9 years ago
Jim Paris
74a05d05d6
Clear out traceback object to avoid reference cycles
9 years ago
Jim Paris
35b20c90a5
Rename and reorganize stuff
9 years ago
Jim Paris
6d9ee7b405
Ability to run user provided code now
9 years ago
Jim Paris
721d6c4936
Add run_code_string function, untested
9 years ago
Jim Paris
973d328e1e
Rename some URLs (/process/command -> /run/command, etc)
9 years ago
Jim Paris
0338d40226
One fewer process when spawning commands
9 years ago
Jim Paris
734e1d9b52
Add /process/command; fix killing of forked processes
Now an entire process tree is killed in /process/remove, as long as
each child hasn't changed its process group.
9 years ago
Jim Paris
30a3559253
Add "force" option for /process/remove
9 years ago
Jim Paris
caad5dec04
Add warning about lack of auth
9 years ago
Jim Paris
e89a48dbb7
Mention SSL stuff in docs
9 years ago
Jim Paris
e2c9575937
More tests
9 years ago
Jim Paris
258fe2358d
Filled out test coverage, fixed lots of bugs
9 years ago
Jim Paris
f73de35ee6
Work in progress on the process manager. Very finicky.
The multiprocessing environment is really finicky.
I'm seeing deadlocks in the process at exit, that are probably related
to tracebacks being printed and still getting redirected to the
logfile or something.
9 years ago
Jim Paris
65e48caf5f
Start test framework; work on server and manager
9 years ago
Jim Paris
a9bac7d9a0
Start thread management stuff
9 years ago
Jim Paris
afd21bfef2
Improve trainola matcher
9 years ago
Jim Paris
b228c3e35f
First implementation of trainola
9 years ago
Jim Paris
ce2be06845
Bump required nilmdb version; use nilmdb.server.serverutil stuff
9 years ago
Jim Paris
ba49bcdf5a
Initial commit
9 years ago