Skip to content

Commit

Permalink
Fix failing backport packages test (#13497)
Browse files Browse the repository at this point in the history
In #13473 - I updated the deprecated packages but looks like it broke backport packages:

```
    File "/usr/local/lib/python3.6/site-packages/airflow/providers/google/cloud/example_dags/example_tasks.py", line 32, in <module>
      from airflow.models.baseoperator import chain
  ImportError: cannot import name 'chain'
```
  • Loading branch information
kaxil authored Jan 5, 2021
1 parent 0fd5807 commit 003584b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
from google.protobuf import timestamp_pb2

from airflow import models
from airflow.models.baseoperator import chain
from airflow.operators.bash import BashOperator
from airflow.providers.google.cloud.operators.tasks import (
CloudTasksQueueCreateOperator,
Expand All @@ -47,6 +46,7 @@
CloudTasksTasksListOperator,
)
from airflow.utils.dates import days_ago
from airflow.utils.helpers import chain

timestamp = timestamp_pb2.Timestamp()
timestamp.FromDatetime(datetime.now() + timedelta(hours=12)) # pylint: disable=no-member
Expand Down

0 comments on commit 003584b

Please sign in to comment.