def status_job(self, fn=None, name=None, timeout=<NUM_LIT:3>):
if fn is None:<EOL><INDENT>def decorator(fn):<EOL><INDENT>self.add_status_job(fn, name, timeout)<EOL><DEDENT>return decorator<EOL><DEDENT>else:<EOL><INDENT>self.add_status_job(fn, name, timeout)<EOL><DEDENT>
Decorator that invokes `add_status_job`.

        ::

            @app.status_job
            def postgresql():
                # query/ping postgres

            @app.status_job(name="Active Directory")
            def active_directory():
                # query active directory

            @app.status_job(timeout=5)
            def paypal():
                # query paypal, timeout after 5 seconds