<p dir="auto">When I configure my default_timezone as Asia/Shanghai and kick off backfill command,  it throws exceptions:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="return func(*args, session=session, **kwargs)"><pre class="notranslate"><code class="notranslate">return func(*args, session=session, **kwargs)
</code></pre></div>
<p dir="auto">File "/usr/local/lib/python3.6/site-packages/airflow/models/dagrun.py", line 181, in refresh_from_db<br>
DR.run_id == self.run_id,<br>
File "/usr/local/lib64/python3.6/site-packages/sqlalchemy/orm/query.py", line 3500, in one<br>
raise orm_exc.NoResultFound("No row was found for one()")<br>
sqlalchemy.orm.exc.NoResultFound: No row was found for one()</p>
<p dir="auto">Changing back to default timezone works again.</p>
<p dir="auto"><strong>Apache Airflow version: 2.0.1</strong><br>
<strong>What happened:</strong><br>
Running an airflow dags test or backfill  CLI command shown in tutorial, produces the same error.</p>
<p dir="auto"><strong>dags test cli command result：</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(airflow_venv) (base) app@lunar_01:airflow$ airflow dags test tutorial 2015-06-01
[2021-02-16 04:29:22,355] {dagbag.py:448} INFO - Filling up the DagBag from /home/app/Lunar/src/airflow/dags
[2021-02-16 04:29:22,372] {example_kubernetes_executor_config.py:174} WARNING - Could not import DAGs in example_kubernetes_executor_config.py: No module named 'kubernetes'
[2021-02-16 04:29:22,373] {example_kubernetes_executor_config.py:175} WARNING - Install kubernetes dependencies with: pip install apache-airflow['cncf.kubernetes']
Traceback (most recent call last):
  File &quot;/home/app/airflow_venv/bin/airflow&quot;, line 10, in &lt;module&gt;
    sys.exit(main())
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/__main__.py&quot;, line 40, in main
    args.func(args)
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/cli/cli_parser.py&quot;, line 48, in command
    return func(*args, **kwargs)
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/session.py&quot;, line 65, in wrapper
    return func(*args, session=session, **kwargs)
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/cli.py&quot;, line 89, in wrapper
    return f(*args, **kwargs)
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/cli/commands/dag_command.py&quot;, line 389, in dag_test
    dag.run(executor=DebugExecutor(), start_date=args.execution_date, end_date=args.execution_date)
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/models/dag.py&quot;, line 1706, in run
    job.run()
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/jobs/base_job.py&quot;, line 237, in run
    self._execute()
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/session.py&quot;, line 65, in wrapper
    return func(*args, session=session, **kwargs)
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/jobs/backfill_job.py&quot;, line 805, in _execute
    session=session,
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/session.py&quot;, line 62, in wrapper
    return func(*args, **kwargs)
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/jobs/backfill_job.py&quot;, line 715, in _execute_for_run_dates
    tis_map = self._task_instances_for_dag_run(dag_run, session=session)
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/session.py&quot;, line 62, in wrapper
    return func(*args, **kwargs)
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/jobs/backfill_job.py&quot;, line 359, in _task_instances_for_dag_run
    dag_run.refresh_from_db()
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/session.py&quot;, line 65, in wrapper
    return func(*args, session=session, **kwargs)
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/models/dagrun.py&quot;, line 178, in refresh_from_db
    DR.run_id == self.run_id,
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/sqlalchemy/orm/query.py&quot;, line 3500, in one
    raise orm_exc.NoResultFound(&quot;No row was found for one()&quot;)
sqlalchemy.orm.exc.NoResultFound: No row was found for one()"><pre class="notranslate"><code class="notranslate">(airflow_venv) (base) app@lunar_01:airflow$ airflow dags test tutorial 2015-06-01
[2021-02-16 04:29:22,355] {dagbag.py:448} INFO - Filling up the DagBag from /home/app/Lunar/src/airflow/dags
[2021-02-16 04:29:22,372] {example_kubernetes_executor_config.py:174} WARNING - Could not import DAGs in example_kubernetes_executor_config.py: No module named 'kubernetes'
[2021-02-16 04:29:22,373] {example_kubernetes_executor_config.py:175} WARNING - Install kubernetes dependencies with: pip install apache-airflow['cncf.kubernetes']
Traceback (most recent call last):
  File "/home/app/airflow_venv/bin/airflow", line 10, in &lt;module&gt;
    sys.exit(main())
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/__main__.py", line 40, in main
    args.func(args)
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/cli/cli_parser.py", line 48, in command
    return func(*args, **kwargs)
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/session.py", line 65, in wrapper
    return func(*args, session=session, **kwargs)
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/cli.py", line 89, in wrapper
    return f(*args, **kwargs)
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/cli/commands/dag_command.py", line 389, in dag_test
    dag.run(executor=DebugExecutor(), start_date=args.execution_date, end_date=args.execution_date)
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/models/dag.py", line 1706, in run
    job.run()
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/jobs/base_job.py", line 237, in run
    self._execute()
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/session.py", line 65, in wrapper
    return func(*args, session=session, **kwargs)
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/jobs/backfill_job.py", line 805, in _execute
    session=session,
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/session.py", line 62, in wrapper
    return func(*args, **kwargs)
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/jobs/backfill_job.py", line 715, in _execute_for_run_dates
    tis_map = self._task_instances_for_dag_run(dag_run, session=session)
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/session.py", line 62, in wrapper
    return func(*args, **kwargs)
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/jobs/backfill_job.py", line 359, in _task_instances_for_dag_run
    dag_run.refresh_from_db()
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/session.py", line 65, in wrapper
    return func(*args, session=session, **kwargs)
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/models/dagrun.py", line 178, in refresh_from_db
    DR.run_id == self.run_id,
  File "/home/app/airflow_venv/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3500, in one
    raise orm_exc.NoResultFound("No row was found for one()")
sqlalchemy.orm.exc.NoResultFound: No row was found for one()
</code></pre></div>
<p dir="auto"><strong>backfill cli command result:</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(airflow_venv) (base) app@lunar_01:airflow$ airflow dags backfill tutorial --start-date 2015-06-01 --end-date 2015-06-07
/home/app/airflow_venv/lib/python3.7/site-packages/airflow/cli/commands/dag_command.py:62 PendingDeprecationWarning: --ignore-first-depends-on-past is deprecated as the value is always set to True
[2021-02-16 04:30:16,979] {dagbag.py:448} INFO - Filling up the DagBag from /home/app/Lunar/src/airflow/dags
[2021-02-16 04:30:16,996] {example_kubernetes_executor_config.py:174} WARNING - Could not import DAGs in example_kubernetes_executor_config.py: No module named 'kubernetes'
[2021-02-16 04:30:16,996] {example_kubernetes_executor_config.py:175} WARNING - Install kubernetes dependencies with: pip install apache-airflow['cncf.kubernetes']
Traceback (most recent call last):
  File &quot;/home/app/airflow_venv/bin/airflow&quot;, line 10, in &lt;module&gt;
    sys.exit(main())
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/__main__.py&quot;, line 40, in main
    args.func(args)
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/cli/cli_parser.py&quot;, line 48, in command
    return func(*args, **kwargs)
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/cli.py&quot;, line 89, in wrapper
    return f(*args, **kwargs)
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/cli/commands/dag_command.py&quot;, line 116, in dag_backfill
    run_backwards=args.run_backwards,
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/models/dag.py&quot;, line 1706, in run
    job.run()
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/jobs/base_job.py&quot;, line 237, in run
    self._execute()
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/session.py&quot;, line 65, in wrapper
    return func(*args, session=session, **kwargs)
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/jobs/backfill_job.py&quot;, line 805, in _execute
    session=session,
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/session.py&quot;, line 62, in wrapper
    return func(*args, **kwargs)
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/jobs/backfill_job.py&quot;, line 715, in _execute_for_run_dates
    tis_map = self._task_instances_for_dag_run(dag_run, session=session)
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/session.py&quot;, line 62, in wrapper
    return func(*args, **kwargs)
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/jobs/backfill_job.py&quot;, line 359, in _task_instances_for_dag_run
    dag_run.refresh_from_db()
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/session.py&quot;, line 65, in wrapper
    return func(*args, session=session, **kwargs)
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/airflow/models/dagrun.py&quot;, line 178, in refresh_from_db
    DR.run_id == self.run_id,
  File &quot;/home/app/airflow_venv/lib/python3.7/site-packages/sqlalchemy/orm/query.py&quot;, line 3500, in one
    raise orm_exc.NoResultFound(&quot;No row was found for one()&quot;)
sqlalchemy.orm.exc.NoResultFound: No row was found for one()"><pre class="notranslate"><code class="notranslate">(airflow_venv) (base) app@lunar_01:airflow$ airflow dags backfill tutorial --start-date 2015-06-01 --end-date 2015-06-07
/home/app/airflow_venv/lib/python3.7/site-packages/airflow/cli/commands/dag_command.py:62 PendingDeprecationWarning: --ignore-first-depends-on-past is deprecated as the value is always set to True
[2021-02-16 04:30:16,979] {dagbag.py:448} INFO - Filling up the DagBag from /home/app/Lunar/src/airflow/dags
[2021-02-16 04:30:16,996] {example_kubernetes_executor_config.py:174} WARNING - Could not import DAGs in example_kubernetes_executor_config.py: No module named 'kubernetes'
[2021-02-16 04:30:16,996] {example_kubernetes_executor_config.py:175} WARNING - Install kubernetes dependencies with: pip install apache-airflow['cncf.kubernetes']
Traceback (most recent call last):
  File "/home/app/airflow_venv/bin/airflow", line 10, in &lt;module&gt;
    sys.exit(main())
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/__main__.py", line 40, in main
    args.func(args)
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/cli/cli_parser.py", line 48, in command
    return func(*args, **kwargs)
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/cli.py", line 89, in wrapper
    return f(*args, **kwargs)
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/cli/commands/dag_command.py", line 116, in dag_backfill
    run_backwards=args.run_backwards,
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/models/dag.py", line 1706, in run
    job.run()
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/jobs/base_job.py", line 237, in run
    self._execute()
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/session.py", line 65, in wrapper
    return func(*args, session=session, **kwargs)
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/jobs/backfill_job.py", line 805, in _execute
    session=session,
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/session.py", line 62, in wrapper
    return func(*args, **kwargs)
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/jobs/backfill_job.py", line 715, in _execute_for_run_dates
    tis_map = self._task_instances_for_dag_run(dag_run, session=session)
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/session.py", line 62, in wrapper
    return func(*args, **kwargs)
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/jobs/backfill_job.py", line 359, in _task_instances_for_dag_run
    dag_run.refresh_from_db()
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/utils/session.py", line 65, in wrapper
    return func(*args, session=session, **kwargs)
  File "/home/app/airflow_venv/lib/python3.7/site-packages/airflow/models/dagrun.py", line 178, in refresh_from_db
    DR.run_id == self.run_id,
  File "/home/app/airflow_venv/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3500, in one
    raise orm_exc.NoResultFound("No row was found for one()")
sqlalchemy.orm.exc.NoResultFound: No row was found for one()
</code></pre></div>