ogremagi4 commented on issue #28178:
URL: https://github.com/apache/airflow/issues/28178#issuecomment-1345540603
I have the same issue with attrs version 22.1.0 and airflow 2.5
Dagbag check of a task finishes with different results: sometimes it
succeeds, sometimes fails.
Not sure how to debug it
```
[2022-12-11T12:18:47.459+0000] {logging_mixin.py:137} INFO -
[2022-12-11T12:18:47.459+0000] {dagbag.py:538} INFO - Filling up the DagBag
from /home/airflow/airflow/dags/etls/new_warehouse/fill_locks.py
[2022-12-11T12:18:48.241+0000] {processor.py:753} INFO - DAG(s)
dict_keys(['fill_locks']) retrieved from
/home/airflow/airflow/dags/etls/new_warehouse/fill_locks.py
[2022-12-11T12:18:48.305+0000] {logging_mixin.py:137} INFO -
[2022-12-11T12:18:48.304+0000] {dag.py:2676} INFO - Sync 1 DAGs
[2022-12-11T12:18:48.372+0000] {logging_mixin.py:137} INFO -
[2022-12-11T12:18:48.372+0000] {dag.py:3423} INFO - Setting next_dagrun for
fill_locks to 2022-12-11T12:00:00+00:00, run_after=2022-12-11T12:30:00+00:00
[2022-12-11T12:18:48.407+0000] {processor.py:175} INFO - Processing
/home/airflow/airflow/dags/etls/new_warehouse/fill_locks.py took 0.954 seconds
[2022-12-11T12:18:50.383+0000] {processor.py:153} INFO - Started process
(PID=40112) to work on
/home/airflow/airflow/dags/etls/new_warehouse/fill_locks.py
[2022-12-11T12:18:50.384+0000] {processor.py:640} INFO - Processing file
/home/airflow/airflow/dags/etls/new_warehouse/fill_locks.py for tasks to queue
[2022-12-11T12:18:50.384+0000] {logging_mixin.py:115} INFO -
[2022-12-11T12:18:50.384+0000] {dagbag.py:508} INFO - Filling up the DagBag
from /home/airflow/airflow/dags/etls/new_warehouse/fill_locks.py
[2022-12-11T12:18:51.098+0000] {logging_mixin.py:115} INFO -
[2022-12-11T12:18:51.097+0000] {dagbag.py:321} ERROR - Failed to import:
/home/airflow/airflow/dags/etls/new_warehouse/fill_locks.py
Traceback (most recent call last):
File
"/home/airflow/airflow/venv/lib/python3.9/site-packages/airflow/models/dagbag.py",
line 318, in parse
if not self.has_logged:
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 228, in
_call_with_frames_removed
File "/home/airflow/airflow/dags/etls/new_warehouse/fill_locks.py", line
8, in <module>
from airflow.decorators import task
File
"/home/airflow/airflow/venv/lib/python3.9/site-packages/airflow/decorators/__init__.py",
line 21, in <module>
from airflow.decorators.base import TaskDecorator
File
"/home/airflow/airflow/venv/lib/python3.9/site-packages/airflow/decorators/base.py",
line 41, in <module>
from airflow.datasets import Dataset
File
"/home/airflow/airflow/venv/lib/python3.9/site-packages/airflow/datasets/__init__.py",
line 26, in <module>
class Dataset:
File
"/home/airflow/airflow/venv/lib/python3.9/site-packages/airflow/datasets/__init__.py",
line 29, in Dataset
uri: str = attr.field(validator=[attr.validators.min_len(1),
attr.validators.max_len(3000)])
AttributeError: module 'attr.validators' has no attribute 'min_len'
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]