when init jobs fail and HandleJobs() has a catchall fail, then turn them into persistent danger popups
This commit is contained in:
@@ -868,7 +868,9 @@ def RunJob(job):
|
|||||||
# okay, we finished a job, so check for any jobs that are dependant on this and run them...
|
# okay, we finished a job, so check for any jobs that are dependant on this and run them...
|
||||||
# session.close()
|
# session.close()
|
||||||
if job.pa_job_state != "Completed":
|
if job.pa_job_state != "Completed":
|
||||||
FinishJob(job, "PA Job Manager - This is a catchall to close of a Job, this should never be seen and implies a job did not actually complete?", "Failed" )
|
FinishJob(job=job,
|
||||||
|
last_log="PA Job Manager - This is a catchall to close of a Job, this should never be seen and implies a job did not actually complete?",
|
||||||
|
state="Failed", pa_job_state="Completed", level="danger", persistent=True, cant_close=False )
|
||||||
HandleJobs(False)
|
HandleJobs(False)
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -2390,7 +2392,9 @@ def InitialValidationChecks():
|
|||||||
AddLogForJob(job, "ERROR: The metadata path in settings does not exist - Please fix now");
|
AddLogForJob(job, "ERROR: The metadata path in settings does not exist - Please fix now");
|
||||||
|
|
||||||
if not rbp_exists or not sp_exists or not ip_exists or not mp_exists:
|
if not rbp_exists or not sp_exists or not ip_exists or not mp_exists:
|
||||||
FinishJob(job,"ERROR: Job manager EXITing until above errors are fixed by paths being created or settings being updated to valid paths", "Failed" )
|
FinishJob(job=job,
|
||||||
|
last_log="ERROR: Job manager EXITing until errors are fixed by paths being created or settings being updated to valid paths",
|
||||||
|
state="Failed", pa_job_state="Completed", level="danger", persistent=True, cant_close=False )
|
||||||
exit(-1)
|
exit(-1)
|
||||||
|
|
||||||
ReloadMetadata(job)
|
ReloadMetadata(job)
|
||||||
|
|||||||
Reference in New Issue
Block a user