Commit Graph

29 Commits

Author SHA1 Message Date
niten ed962240b3 Use a pool of detectors.
When more than a single request was coming in at a time, the server
would crash when trying to write the output file. Each worker had a
single detector with one DN network, so if more than <WORKER#> requests
came in at once, one network would be used multiple times--and it's not
threadsafe.

I've added a queue of nets to pull from, so each request has exclusive
access to a specific network.
2023-03-15 12:31:01 -07:00
niten d4de83bf4b Try without PID file 2023-01-23 15:53:56 -08:00
niten 300f59aa7e See if it's dynamic user that's the problem 2023-01-23 12:01:25 -08:00
niten 0184969af8 Store the pidfile elsewhere 2023-01-23 08:57:53 -08:00
niten 1798c85609 Try setting a runtime dir 2023-01-23 08:23:56 -08:00
niten cb5aaf3efc Okay, now lock some stuff 2023-01-22 16:17:03 -08:00
niten f92c5ce3a3 Fuck it, allow everything for now 2023-01-22 16:08:13 -08:00
niten 9ea8c59f48 Try setting TMPDIR 2023-01-22 15:52:24 -08:00
niten 2446c2bd4b Remove some protections 2023-01-22 15:37:01 -08:00
niten 48cac03ec9 Allow read/write on /run 2023-01-22 15:03:05 -08:00
niten 8f25a59324 Harden the module service. 2023-01-12 11:15:43 -08:00
niten a5b9ee4cd7 Seems like reloading doesn't work? 2023-01-07 16:59:07 -08:00
niten f7b6fb5c65 Might have to name the dirs? 2023-01-07 16:27:12 -08:00
niten 1271ce614a Why does `path` never work...? 2023-01-07 14:58:07 -08:00
niten 00bc4d1da7 Try a different tack... 2023-01-07 14:47:35 -08:00
niten 931c60ee57 Include everything independenly 2023-01-07 14:10:20 -08:00
niten 0de918c1fe Add mkOption 2023-01-07 13:41:23 -08:00
niten c51aaedb1d Why is delay a set? 2023-01-07 12:43:18 -08:00
niten 46e0801931 Add cleanup thread, use systemd directories 2023-01-07 12:38:14 -08:00
niten 3ea26dd9f2 Change envvar to string 2023-01-06 18:20:05 -08:00
niten 5370b1ab34 [module] yolo-data -> yolov3-data 2023-01-06 18:13:26 -08:00
niten 75892fa2ef Remove blank spaces... 2023-01-06 18:04:49 -08:00
niten 31d032b5ef Need to pass yolo-data to module 2023-01-06 17:31:58 -08:00
niten 7eef72712c ...Same for workers 2023-01-06 16:20:17 -08:00
niten 77d23c6401 Convert port toString 2023-01-06 16:16:33 -08:00
niten 6130473dfb Oops, wrapped the wrong list... 2023-01-06 16:11:56 -08:00
niten 463f5dd9d8 Wrap concatString in brackets. 2023-01-06 15:50:48 -08:00
niten a7aadef0c4 Add some clauses to systemd 2023-01-06 14:59:27 -08:00
niten e240b33b77 Initial commit 2023-01-06 14:46:11 -08:00