def add_job(self, id, func, **kwargs):

        job_def = dict(kwargs)
        job_def['id'] = id
        job_def['func'] = func
        job_def['name'] = job_def.get('name') or id

        fix_job_def(job_def)

        return self.__scheduler.add_job(**job_def)
Adds the given job to the job list and wakes up the scheduler if it's already running.
dataset/ETHPy150Open viniciuschiele/flask-apscheduler/flask_apscheduler/scheduler.py/APScheduler.add_job