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

Add missed import in the Trigger Rules example #27309

Merged
merged 2 commits into from Oct 27, 2022
Merged

Commits on Oct 27, 2022

  1. 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
    pigidser committed Oct 27, 2022
    Configuration menu
    Copy the full SHA
    558c246 View commit details
    Browse the repository at this point in the history
  2. Reorder imports

    uranusjr committed Oct 27, 2022
    Configuration menu
    Copy the full SHA
    66824e7 View commit details
    Browse the repository at this point in the history