code: def cancel(self, job):
          
          if isinstance(job, self.job_class):
              self.connection.zrem(self.scheduled_jobs_key, job.id)
          else:
              self.connection.zrem(self.scheduled_jobs_key, job)
docs: Pulls a job from the scheduler queue. This function accepts either a
          job_id or a job instance.