if not job.init or job.status == "ERROR" then
job.status = "ERROR"
@log.info( "Failed to initialize sub-job \"#{job.get_project().name}\" for #{job.os}. (#{job.id})", Log::LV_USER)
- job.terminate()
end
if job.status != "ERROR" then
job.status = "WAITING"
else
- job.status = "ERROR"
tstatus = "ERROR"
end
end
# Changed the status of initialized sub-jobs if parent is in ERROR status
@sub_jobs.each do |job|
if job.status == "WAITING" then
+ job.event = "CANCEL"
job.status = "CANCELED"
end
+ # Add internal job for cancel,error process
+ @server.jobmgr.add_internal_job(job)
end
@status = tstatus
return false