airflow - sqlite3.OperationalError: no such table: dag when running in tox environment
问题描述
我有一个运行 tox 文件的 github 操作。tox 文件正在对 apache 气流进行一些非常基本的测试。例如:
workflow.yml
- uses: actions/checkout@v1
- some more steps
- name: Run tox
run: tox
毒物
[tox]
envlist = py36
[testenv]
deps =
pytest
commands =
pytest
测试文件.py
def test_dags():
dagbag = DagBag(dag_folder=str(os.path.dirname(os.path.abspath('task_manager_airflow'))) / 'dags', include_examples=False)
dag = dagbag.get_dag(dag_id='some_dag')
no such table: dag
github操作运行时怎么会出错?当我在我的机器上本地运行它时,它运行良好。
解决方案
推荐阅读
- cassandra - [Ubuntu 20.04]DevCenter 启动时出现错误 java.lang.NoClassDefFoundError: org/w3c/dom/stylesheets/StyleSheet
- git - git push -u origin main 错误(除 master 以外的其他名称)
- rust - 在 Rust 中,将文件读取的数据保持在范围内的正确方法是什么?
- c - 使用 gcc 检测数组展平技巧
- flutter - 是否可以在颤动中以编程方式拖动 DraggableScrollableSheet?
- c# - XAML 无法访问本地化资源
- owl - OWL/Protege:模型推断的一类人,他们不是一个群体的成员
- postgresql - 是否可以使用 Postgres 的字节大小来限制字符长度?
- docker - docker selenium 独立 chrome 或 firefox 问题,org.openqa.selenium.remote.UnreachableBrowserException:无法启动新会话
- keycloak - Keycloak 和 Vault 与客户端角色的集成