def METHOD_NAME(self, session_key=False):
    """Get all jobs.
    Parameters
    ----------
    str : session_key
        The authorized session key
    """
    try:
        # self.logger.debug("bin.jobs_queue: Getting all jobs.")
        kvstoreUri = self.kvstoreUri+'?output_mode=json'
        auth_key = session_key if session_key else splunk.getSessionKey()
        result = self.session.get(
            kvstoreUri,
            headers={
                "Authorization": "Splunk %s" % auth_key,
                "Content-Type": "application/json"
            },
            verify=False
        ).json()
        if 'messages' in result:
            r = result['messages'][0]
            if r['type'] == 'ERROR' and r['text'] == 'KV Store is initializing. Please try again later.':
                result = []
        return jsonbak.dumps(result)
    except Exception as e:
        self.logger.error(
            'bin.jobs_queue: Error getting the jobs queue in JobsQueue module: %s ' % (e))
        raise e