The `TestSchedulerJob.test_retry_still_in_executor` fails occasionally and should be quarantined.

```
  ________________ TestSchedulerJob.test_retry_still_in_executor _________________
  
  self = <tests.jobs.test_scheduler_job.TestSchedulerJob object at 0x7f4c9031f128>
  
      def test_retry_still_in_executor(self):
          """
          Checks if the scheduler does not put a task in limbo, when a task is retried
          but is still present in the executor.
          """
          executor = MockExecutor(do_update=False)
          dagbag = DagBag(dag_folder=os.path.join(settings.DAGS_FOLDER, "no_dags.py"), include_examples=False)
          dagbag.dags.clear()
      
          dag = DAG(dag_id='test_retry_still_in_executor', start_date=DEFAULT_DATE, schedule_interval="@once")
          dag_task1 = BashOperator(
              task_id='test_retry_handling_op', bash_command='exit 1', retries=1, dag=dag, owner='airflow'
          )
      
          dag.clear()
          dag.is_subdag = False
      
          with create_session() as session:
              orm_dag = DagModel(dag_id=dag.dag_id)
              orm_dag.is_paused = False
              session.merge(orm_dag)
      
          dagbag.bag_dag(dag=dag, root_dag=dag)
          dagbag.sync_to_db()
      
          @mock.patch('airflow.dag_processing.processor.DagBag', return_value=dagbag)
          def do_schedule(mock_dagbag):
              # Use a empty file since the above mock will return the
              # expected DAGs. Also specify only a single file so that it doesn't
              # try to schedule the above DAG repeatedly.
              self.scheduler_job = SchedulerJob(
                  num_runs=1, executor=executor, subdir=os.path.join(settings.DAGS_FOLDER, "no_dags.py")
              )
              self.scheduler_job.heartrate = 0
              self.scheduler_job.run()
      
          do_schedule()
          with create_session() as session:
              ti = (
                  session.query(TaskInstance)
                  .filter(
                      TaskInstance.dag_id == 'test_retry_still_in_executor',
                      TaskInstance.task_id == 'test_retry_handling_op',
                  )
                  .first()
              )
  >       ti.task = dag_task1
  E       AttributeError: 'NoneType' object has no attribute 'task'
  
  tests/jobs/test_scheduler_job.py:2514: AttributeError
```
tests/jobs/test_scheduler_job.py
self.scheduler_job.heartbeat = mock.MagicMock()
            self.scheduler_job.processor_agent = mock_agent
            failures = []  
            message = "Expected {expected_count} query, but got {current_count} located at:"
            for expected_query_count in expected_query_counts:
                with create_session() as session:
                    try:
                        with assert_queries_count(expected_query_count, message):
                            self.scheduler_job._do_scheduling(session)
                    except AssertionError as e:
                        failures.append(str(e))
            if failures:
                prefix = "Collected database query count mismatches:"
                joined = "\n\n".join(failures)
                raise AssertionError(f"{prefix}\n\n{joined}")
    def test_should_mark_dummy_task_as_success(self):
        dag_file = os.path.join(
            os.path.dirname(os.path.realpath(__file__)), '../dags/test_only_dummy_tasks.py'
        )
        
        dagbag = DagBag(dag_folder=dag_file, include_examples=False, read_dags_from_db=False)
        dagbag.sync_to_db()
        self.scheduler_job = SchedulerJob(subdir=os.devnull)
        self.scheduler_job.processor_agent = mock.MagicMock()
        dag = self.scheduler_job.dagbag.get_dag("test_only_dummy_tasks")
        
        session = settings.Session()
        orm_dag = session.query(DagModel).get(dag.dag_id)
        self.scheduler_job._create_dag_runs([orm_dag], session)
        drs = DagRun.find(dag_id=dag.dag_id, session=session)