diff --git a/BUGs b/BUGs index 307c766..f68178e 100644 --- a/BUGs +++ b/BUGs @@ -1,3 +1,4 @@ -### Next: 3 +### Next: 4 BUG-2: Fix the function FixPath so its not just C:, use isPosixPath instead... +BUG-3: import job (first time, does not update with #files as it runs) diff --git a/TODO b/TODO index a98cdf8..84c5072 100644 --- a/TODO +++ b/TODO @@ -1,9 +1,8 @@ -DDP: - Need to use thread-safe sessions per Thread, half-assed version did not work - ### DB ### BACKEND + *** Need to use thread-safe sessions per Thread, half-assed version did not work + * need a "batch" processing system that uses ionice to minimise load on mara and is threaded and used DB to interact with gunicorn'd pa * pa_job_manager, needs ai code @@ -25,9 +24,6 @@ DDP: id to link to AI_scan refimg used/found - num jobs active, num jobs completed, lets bin them from the pa_job_manager table -> calculate them everytime (simple select count(1) from job where pa_job_state == "Completed") - FE does not really care what 'state' the job engine is in anyway, so maybe we bin that table, make it a local class to pa_job_manager? - When AI kicks in, it processes per person per DIR, only compares to an image if it has_unidentified_face Admin diff --git a/job.py b/job.py index a490dc5..91f4068 100644 --- a/job.py +++ b/job.py @@ -112,7 +112,7 @@ def joblog(id): # /job/ -> GET -> shows status/history of jobs ################################################################################ @app.route("/wakeup", methods=["GET"]) -def wake_wrapper(): +def wakeup(): WakePAJobManager() return render_template("base.html")