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:
3
BUGs
3
BUGs
@@ -1,3 +1,4 @@
|
|||||||
### Next: 3
|
### Next: 4
|
||||||
BUG-2: Fix the function FixPath so its not just C:, use isPosixPath instead...
|
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
8
TODO
@@ -1,9 +1,8 @@
|
|||||||
DDP:
|
|
||||||
Need to use thread-safe sessions per Thread, half-assed version did not work
|
|
||||||
|
|
||||||
### DB
|
### DB
|
||||||
|
|
||||||
### BACKEND
|
### 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
|
* 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
|
* pa_job_manager, needs ai code
|
||||||
@@ -25,9 +24,6 @@ DDP:
|
|||||||
id to link to AI_scan
|
id to link to AI_scan
|
||||||
refimg used/found
|
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
|
When AI kicks in, it processes per person per DIR, only compares to an image if it has_unidentified_face
|
||||||
|
|
||||||
Admin
|
Admin
|
||||||
|
|||||||
2
job.py
2
job.py
@@ -112,7 +112,7 @@ def joblog(id):
|
|||||||
# /job/<id> -> GET -> shows status/history of jobs
|
# /job/<id> -> GET -> shows status/history of jobs
|
||||||
################################################################################
|
################################################################################
|
||||||
@app.route("/wakeup", methods=["GET"])
|
@app.route("/wakeup", methods=["GET"])
|
||||||
def wake_wrapper():
|
def wakeup():
|
||||||
WakePAJobManager()
|
WakePAJobManager()
|
||||||
return render_template("base.html")
|
return render_template("base.html")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user