web.job_pool.fetch_job_failure_reasons

Here are the examples of the python api web.job_pool.fetch_job_failure_reasons taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: cloud-scheduler Source File: info_server.py
        def view_boot_failures(self):
            output = []
            output.append("Job Failure Reasons:\n")
            reasons = web.job_pool.fetch_job_failure_reasons()
            for job in reasons:
                output.append("   Job ID: %s\n" % job.id)
                for reason in job.failed_boot_reason:
                    output.append("      %s\n" % reason)
            return ''.join(output)