'Utility function that runs a single scheduler loop without actually
changing/scheduling any dags. This is useful to simulate the other side effects of
running a scheduler loop, e.g. to see what parse errors there are in the
dags_folder.
:param dags_folder: the directory to traverse
:type directory: str'

@staticmethod
def run_single_scheduler_loop_with_no_dags(dags_folder):

    scheduler = SchedulerJob(dag_id=u'this_dag_doesnt_exist', num_runs=1, subdir=os.path.join(dags_folder))
    scheduler.heartrate = 0
    scheduler.run()
