title: AdvancePythonScheduler Pause Job
body: <p>I am working with APScheduler and would like to pause and resume job based on the request. Below is the code I have tried.</p>
  <pre><code>        from apscheduler.schedulers.background import BackgroundScheduler
          from apscheduler.jobstores.mongodb import MongoDBJobStore
          from apscheduler.jobstores.sqlalchemy import SQLAlchemyJobStore
          from apscheduler.executors.pool import ThreadPoolExecutor, ProcessPoolExecutor
          from apscheduler.schedulers.base import BaseScheduler
          
          jobstores = {
              'default': SQLAlchemyJobStore(url='sqlite:///jobs.sqlite')
          }
          
          executors = {
              'default': ThreadPoolExecutor(20),
              'processpool': ProcessPoolExecutor(5)
          }
          job_defaults = {
              'coalesce': False,
              'max_instances': 3
          }
          scheduler = BackgroundScheduler(jobstores=jobstores, executors=executors, 
          job_defaults=job_defaults, timezone=utc)
      
             def testTrigger():
               print(&quot;APScheduler...&quot;)
  
      //Adding Job
      scheduler.add_job(testTrigger,'interval',seconds=5,id='schedule_1')
      
      //Pausing Job
      BaseScheduler.pause_job(job_id='schedule_1')
  </code></pre>
  <p>I am facing the following error <code>pause_job() missing 1 required positional argument: 'self'</code>. Where am I going wrong?</p>