Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrigir erro ao gerar DAGs no Airflow 2.10.0 #134

Closed
augusto-herrmann opened this issue Sep 2, 2024 · 1 comment · Fixed by #135
Closed

Corrigir erro ao gerar DAGs no Airflow 2.10.0 #134

augusto-herrmann opened this issue Sep 2, 2024 · 1 comment · Fixed by #135
Labels
bug Something isn't working

Comments

@augusto-herrmann
Copy link
Member

No Airflow 2.10.0, no arquivo dou_dag_generator.py, ao gerar as DAGs a partir das configurações, aparece o erro:

Broken DAG: [/opt/airflow/dags/ro_dou_src/dou_dag_generator.py]
Traceback (most recent call last):
  File "/home/airflow/.local/lib/python3.10/site-packages/airflow/models/dag.py", line 781, in __init__
    validate_instance_args(self, DAG_ARGS_EXPECTED_TYPES)
  File "/home/airflow/.local/lib/python3.10/site-packages/airflow/utils/helpers.py", line 68, in validate_instance_args
    raise TypeError(
TypeError: 'tags' has an invalid type <class 'set'> with value {'dou', 'generated_dag'}, expected type is <class 'list'>

O erro não acontece no Airflow versão 2.9.1, que é a versão usada nos testes do Ro-DOU.

@augusto-herrmann augusto-herrmann added the bug Something isn't working label Sep 2, 2024
@augusto-herrmann
Copy link
Member Author

Recentemente o modelo de configuração de DAGs foi migrado para o Pydantic (#118) e as tags mudaram de uma list para um set. Porém o Airflow 2.10 espera receber uma lista.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant