def METHOD_NAME(name, *args, **kwargs):
    """
    Decorator to mark a job to be collected by the job collector.
    All arguments are passed to ``register_job``.
    """
    def decorator(f):
        JOB_COLLECTOR.register_job(name, f, args, kwargs)
        return f
    return decorator