diff --git a/TODO b/TODO index f26278a..35fcae7 100644 --- a/TODO +++ b/TODO @@ -3,11 +3,6 @@ DDP: sess={} sess[job.id]=Session() etc - Then when we finish 1 job, we need to force 'wake-up' / run any dependant jobs - - move scan now and force scan over to new file structures - - scan now is over, but job-id's should be hrefs... need to last_import_date=0 for all Dirs, then call ProcessImportDirs for force scan - optimise gen hash / thumbs to only process dirs with new content ### DB diff --git a/pa_job_manager.py b/pa_job_manager.py index af7d75b..6683439 100644 --- a/pa_job_manager.py +++ b/pa_job_manager.py @@ -243,6 +243,8 @@ def RunJob(job): JobGetFileDetails(job) else: print("ERROR: Requested to process unknown job type: {}".format(job.name)) + # okay, we finished a job, so check for any jobs that are dependant on this and run them... + HandleJobs() return def FinishJob(job, last_log, state="Completed", pa_job_state="Completed"):