JCoder01 commented on issue #13099:
URL: https://github.com/apache/airflow/issues/13099#issuecomment-748333536


   log and stacktrace
   ```
   
   (pyenv) jcoder@bos-rndab01 ~/airflow_scheduler_test $ airflow scheduler
     ____________       _____________
    ____    |__( )_________  __/__  /________      __
   ____  /| |_  /__  ___/_  /_ __  /_  __ \_ | /| / /
   ___  ___ |  / _  /   _  __/ _  / / /_/ /_ |/ |/ /
    _/_/  |_/_/  /_/    /_/    /_/  \____/____/|__/
   [2020-12-18 16:41:19,262] {scheduler_job.py:1241} INFO - Starting the 
scheduler
   [2020-12-18 16:41:19,262] {scheduler_job.py:1246} INFO - Processing each 
file at most -1 times
   [2020-12-18 16:41:19,323] {dag_processing.py:250} INFO - Launched 
DagFileProcessorManager with pid: 79
   25
   [2020-12-18 16:41:19,324] {scheduler_job.py:1751} INFO - Resetting orphaned 
tasks for active dag runs
   [2020-12-18 16:41:19,331] {settings.py:52} INFO - Configured default 
timezone Timezone('UTC')
   [2020-12-18 16:41:19,349] {scheduler_job.py:1805} INFO - Reset the following 
2 orphaned TaskInstances:
           <TaskInstance: example_task_group2.section_2.inner_section_2.task_2 
2020-12-17 21:47:00+00:00
   [scheduled]>
           <TaskInstance: example_task_group2.section_2.inner_section_2.task_2 
2020-12-17 21:48:00+00:00
   [scheduled]>
   [2020-12-18 16:41:19,451] {plugins_manager.py:231} ERROR - UNEXPECTED COMMIT 
- THIS WILL BREAK HA LOCKS!
   Traceback (most recent call last):
     File 
"/home/jcoder/airflow_scheduler_test/pyenv/lib/python3.7/site-packages/airflow/plugins_manager.
   py", line 222, in load_plugins_from_plugin_directory
       loader.exec_module(mod)
     File "<frozen importlib._bootstrap_external>", line 728, in exec_module
     File "<frozen importlib._bootstrap>", line 219, in 
_call_with_frames_removed
     File "/home/jcoder/airflow_scheduler_test/plugins/Plugin.py", line 3, in 
<module>
       v = Variable().get("VAR")
     File 
"/home/jcoder/airflow_scheduler_test/pyenv/lib/python3.7/site-packages/airflow/models/variable.
   py", line 123, in get
       var_val = Variable.get_variable_from_secrets(key=key)
     File 
"/home/jcoder/airflow_scheduler_test/pyenv/lib/python3.7/site-packages/airflow/models/variable.
   py", line 181, in get_variable_from_secrets
       var_val = secrets_backend.get_variable(key=key)
     File 
"/home/jcoder/airflow_scheduler_test/pyenv/lib/python3.7/site-packages/airflow/utils/session.py
   ", line 65, in wrapper
       return func(*args, session=session, **kwargs)
     File 
"/opt/anaconda/2020/envs/py_37_pands0.25/lib/python3.7/contextlib.py", line 
119, in __exit__
       next(self.gen)
     File 
"/home/jcoder/airflow_scheduler_test/pyenv/lib/python3.7/site-packages/airflow/utils/session.py
   ", line 32, in create_session
       session.commit()
     File 
"/home/jcoder/airflow_scheduler_test/pyenv/lib/python3.7/site-packages/sqlalchemy/orm/session.p
   y", line 1042, in commit
       self.transaction.commit()
     File 
"/home/jcoder/airflow_scheduler_test/pyenv/lib/python3.7/site-packages/sqlalchemy/orm/session.p
   y", line 504, in commit
       self._prepare_impl()
     File 
"/home/jcoder/airflow_scheduler_test/pyenv/lib/python3.7/site-packages/sqlalchemy/orm/session.p
   y", line 472, in _prepare_impl
       self.session.dispatch.before_commit(self.session)
     File 
"/home/jcoder/airflow_scheduler_test/pyenv/lib/python3.7/site-packages/sqlalchemy/event/attr.py
   ", line 322, in __call__
       fn(*args, **kw)
     File 
"/home/jcoder/airflow_scheduler_test/pyenv/lib/python3.7/site-packages/airflow/utils/sqlalchemy
   .py", line 217, in _validate_commit
       raise RuntimeError("UNEXPECTED COMMIT - THIS WILL BREAK HA LOCKS!")
   RuntimeError: UNEXPECTED COMMIT - THIS WILL BREAK HA LOCKS!
   [2020-12-18 16:41:19,460] {plugins_manager.py:232} ERROR - Failed to import 
plugin /home/jcoder/airflo
   w_scheduler_test/plugins/Plugin.py
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to