added BUG-3 (import dir job on 1st run does not track num_files - even at end), and now have wakeup route expose in menu

This commit is contained in:
2021-01-21 01:08:52 +11:00
parent 498e3d383f
commit 72a892fd17
3 changed files with 5 additions and 8 deletions

3
BUGs
View File

@@ -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)

8
TODO
View File

@@ -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

2
job.py
View File

@@ -112,7 +112,7 @@ def joblog(id):
# /job/<id> -> GET -> shows status/history of jobs
################################################################################
@app.route("/wakeup", methods=["GET"])
def wake_wrapper():
def wakeup():
WakePAJobManager()
return render_template("base.html")