'print_jobs(jobstore=None, out=sys.stdout)
Prints out a textual listing of all jobs currently scheduled on either all job stores or just a specific one.
:param str|unicode jobstore: alias of the job store, ``None`` to list jobs from all stores
:param file out: a file-like object to print to (defaults to **sys.stdout** if nothing is given)'

def print_jobs(self, jobstore=None, out=None):

    out = (out or sys.stdout)
    with self._jobstores_lock:
        if self._pending_jobs:
            print(six.u('Pending    jobs:'), file=out)
            for (job, jobstore_alias, replace_existing) in self._pending_jobs:
                if (jobstore in (None, jobstore_alias)):
                    print((six.u('                %s') % job), file=out)
        for (alias, store) in six.iteritems(self._jobstores):
            if (jobstore in (None, alias)):
                print((six.u('Jobstore    %s:') % alias), file=out)
                jobs = store.get_all_jobs()
                if jobs:
                    for job in jobs:
                        print((six.u('                %s') % job), file=out)
                else:
                    print(six.u('                No    scheduled    jobs'), file=out)
