You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jobs@airflow.apache.org by GitBox <gi...@apache.org> on 2022/10/27 08:09:13 UTC

[GitHub] [airflow]: Workflow run "Build images for Add missed import in the Trigger Rules example https://github.com/apache/airflow/pull/27309 " failed!

The GitHub Actions job "Build images for Add missed import in the Trigger Rules example https://github.com/apache/airflow/pull/27309
" on airflow.git has failed.
Run started by GitHub user pigidser (triggered by pigidser).

Head commit for run:
558c246e93dc6927c4ed27972b773c1880df9e2a / pigidser <38...@users.noreply.github.com>
Add missed import in the Trigger Rules example

An example of the Trigger Rules chapter raises the error while loading to UI:
Broken DAG: [/opt/airflow/dags/branch_without_trigger.py] Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/opt/airflow/dags/branch_without_trigger.py", line 16, in <module>
    @task.branch(task_id="branching")
NameError: name 'task' is not defined

It is needed to add the next import:
from airflow.decorators import task

Report URL: https://github.com/apache/airflow/actions/runs/3335525878

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: jobs-unsubscribe@airflow.apache.org
For additional commands, e-mail: jobs-help@airflow.apache.org