call HandleJobs() when RunJob() finished to run any dependant jobs

This commit is contained in:
2021-01-20 22:01:14 +11:00
parent f7a94f0b7d
commit 5b99855cb5
2 changed files with 2 additions and 5 deletions

5
TODO
View File

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

View File

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