Commit Graph

164 Commits

Author SHA1 Message Date
30195e9597 removed filedata*, moved ProcessImportDir out into its own function, used it, also in scannow job, ensure job states are set appropriately to enforce all of the jobs are processed right 2021-01-20 16:37:00 +11:00
0de95d56d5 fixed up JobExtra printout in class, also put it in job.py, and passed extras to templates/jobs.html to show the extra details on the jobs list page so we can see what path is imported for example 2021-01-20 00:05:56 +11:00
9474c12a0d JobGetFileDetails now works - first pass, need to improve handling of files in dirs - I optimised/assumed last dir is what you are in, but that is not always true, so need to set actual dir each time 2021-01-19 23:34:12 +11:00
2bd25c3e18 set up FileType properly, select on in DB, rather than add new ones each time, ouch! Also renamed type to type_id (better as it is a new foreign key) and use type as the relationship to hold the object anyway 2021-01-19 17:32:33 +11:00
47085b7a43 cleaned up code, before rewrite for viewing 2021-01-19 11:10:25 +11:00
5285bf66ab alternate database structure with entry, (new_)file, dir works in terms of DB and SQL alchemy, tomorrow we rewrite the jobs to really use the new structure 2021-01-18 21:40:46 +11:00
4053919def comment out sleep again, also removed some debugs, and converted some to AddLogForJob 2021-01-18 13:20:15 +11:00
507336c2b2 commented out sleep which I use for testing of active jobs/job refresh page, and re-title the job list html 2021-01-17 12:38:28 +11:00
2b9dedb9b9 change how we calculate active jobs, probably will remove it from pa_job_engine, safer with threads I think. But, mostyle, added in client / server socket comms between web FE and job manager, with better job creation message (including link to job detail) and when you view job detail it auto-refreshes every few seconds until job complete) 2021-01-17 12:35:28 +11:00
abff2d8bab finished moving GenerateFileData out of files.py into pa_job_manager.py 2021-01-17 11:31:06 +11:00
a89f7fdb2b fixed bugs with wrong sequence names in DB classes, also added AddLogForJob and used it in GenerateFileData, and fixed but where I re-ran a completed job 2021-01-17 11:05:14 +11:00
c5d8811671 actually create a job for scan now, and let the job manager do the work and send back output via new PA_JobManager_FE_Message table 2021-01-17 10:50:43 +11:00
b01bdea505 had to make pa_eng global in Init* func, but that worked, now have a basic harness to run a job, and ran scannow job, by pulling in much of the files.py code, but it will be removed from there when this is finished. Will have to move to IPC (via sockets?) to allow better coordination of new job processing and updating 2021-01-16 23:54:31 +11:00
826e2fd421 switched name to pa_job_manager, feels more appropriate 2021-01-16 17:46:54 +11:00