You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/10/29 14:34:48 UTC

[GitHub] [airflow] OmerJog commented on issue #6335: [AIRFLOW-5621] - Failure callback is not triggered when marked Failed on UI

OmerJog commented on issue #6335: [AIRFLOW-5621] - Failure callback is not triggered when marked Failed on UI
URL: https://github.com/apache/airflow/pull/6335#issuecomment-547450996
 
 
   @bharathpalaksha can you resolve the error with the test you added?
   
   ```
   ======================================================================
   52) ERROR: test_mark_failure_on_failure_callback (tests.jobs.test_local_task_job.TestLocalTaskJob)
   ----------------------------------------------------------------------
      Traceback (most recent call last):
       tests/jobs/test_local_task_job.py line 257 in test_mark_failure_on_failure_callback
         task = dag.get_task('task1')
      AttributeError: 'NoneType' object has no attribute 'get_task'
      -------------------- >> begin captured logging << --------------------
      airflow.models.dagbag.DagBag: INFO: Filling up the DagBag from /opt/airflow/tests/dags
      root: INFO: class_instance type: <class 'unusual_prefix_5d280a9b385120fec3c40cfe5be04e2f41b6b5e8_test_task_view_type_check.CallableClass'>
      airflow.models.dagbag.DagBag: ERROR: Failed to import: /opt/airflow/tests/dags/test_mark_failure.py
      Traceback (most recent call last):
        File "/opt/airflow/airflow/models/dagbag.py", line 200, in process_file
          m = imp.load_source(mod_name, filepath)
        File "/usr/local/lib/python3.6/imp.py", line 172, in load_source
          module = _load(spec)
        File "<frozen importlib._bootstrap>", line 684, in _load
        File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
        File "<frozen importlib._bootstrap_external>", line 678, in exec_module
        File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
        File "/opt/airflow/tests/dags/test_mark_failure.py", line 21, in <module>
          from jobs.test_local_task_job import data
      ModuleNotFoundError: No module named 'jobs'
      airflow.models.dagbag.DagBag: INFO: File /opt/airflow/tests/dags/test_zip.zip assumed to contain no DAGs. Skipping.
   ```

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services