|
100 | 100 | from airflow.kubernetes.volume import Volume |
101 | 101 | from airflow.kubernetes.volume_mount import VolumeMount |
102 | 102 | from airflow.macros.hive import closest_ds_partition, max_partition |
| 103 | +from airflow.operators import ( |
| 104 | + dagrun_operator, |
| 105 | + dummy_operator, |
| 106 | + email_operator, |
| 107 | + python_operator, |
| 108 | +) |
103 | 109 | from airflow.operators.bash import BashOperator |
104 | 110 | from airflow.operators.bash_operator import BashOperator as LegacyBashOperator |
105 | 111 | from airflow.operators.check_operator import ( |
|
115 | 121 | from airflow.operators.datetime import BranchDateTimeOperator |
116 | 122 | from airflow.operators.docker_operator import DockerOperator |
117 | 123 | from airflow.operators.druid_check_operator import DruidCheckOperator |
| 124 | +from airflow.operators.dummy import DummyOperator, EmptyOperator |
| 125 | +from airflow.operators.email import EmailOperator |
| 126 | +from airflow.operators.email_operator import EmailOperator |
118 | 127 | from airflow.operators.gcs_to_s3 import GCSToS3Operator |
119 | 128 | from airflow.operators.google_api_to_s3_transfer import ( |
120 | 129 | GoogleApiToS3Operator, |
|
153 | 162 | PrestoToMySqlOperator, |
154 | 163 | PrestoToMySqlTransfer, |
155 | 164 | ) |
| 165 | +from airflow.operators.python import ( |
| 166 | + BranchPythonOperator, |
| 167 | + PythonOperator, |
| 168 | + PythonVirtualenvOperator, |
| 169 | + ShortCircuitOperator, |
| 170 | +) |
156 | 171 | from airflow.operators.redshift_to_s3_operator import ( |
157 | 172 | RedshiftToS3Operator, |
158 | 173 | RedshiftToS3Transfer, |
|
189 | 204 | from airflow.operators.sqlite_operator import SqliteOperator |
190 | 205 | from airflow.operators.trigger_dagrun import TriggerDagRunOperator |
191 | 206 | from airflow.operators.weekday import BranchDayOfWeekOperator |
| 207 | +from airflow.sensors import external_task_sensor |
192 | 208 | from airflow.sensors.date_time import DateTimeSensor |
193 | | -from airflow.sensors.external_task import ExternalTaskMarker, ExternalTaskSensor |
| 209 | +from airflow.sensors.date_time_sensor import DateTimeSensor |
| 210 | +from airflow.sensors.external_task import ( |
| 211 | + ExternalTaskMarker, |
| 212 | + ExternalTaskSensor, |
| 213 | + ExternalTaskSensorLink, |
| 214 | +) |
194 | 215 | from airflow.sensors.filesystem import FileSensor |
195 | 216 | from airflow.sensors.hive_partition_sensor import HivePartitionSensor |
196 | 217 | from airflow.sensors.http_sensor import HttpSensor |
|
408 | 429 | # apache-airflow-providers-zendesk |
409 | 430 | ZendeskHook() |
410 | 431 |
|
| 432 | +# apache-airflow-providers-smtp |
| 433 | +EmailOperator() |
| 434 | +email_operator.EmailOperator() |
| 435 | + |
411 | 436 | # apache-airflow-providers-standard |
412 | | -FileSensor() |
413 | | -TriggerDagRunOperator() |
414 | | -ExternalTaskMarker(), ExternalTaskSensor() |
415 | 437 | BranchDateTimeOperator() |
416 | 438 | BranchDayOfWeekOperator() |
| 439 | +BranchPythonOperator() |
417 | 440 | DateTimeSensor() |
418 | | -TimeSensor() |
419 | | -TimeDeltaSensor() |
| 441 | +DateTimeTrigger() |
420 | 442 | DayOfWeekSensor() |
| 443 | +DummyOperator() |
| 444 | +EmptyOperator() |
| 445 | +ExternalTaskMarker() |
| 446 | +ExternalTaskSensor() |
| 447 | +ExternalTaskSensorLink() |
| 448 | +FileSensor() |
| 449 | +FileTrigger() |
421 | 450 | FSHook() |
422 | 451 | PackageIndexHook() |
423 | 452 | SubprocessHook() |
| 453 | +ShortCircuitOperator() |
| 454 | +TimeDeltaSensor() |
| 455 | +TimeSensor() |
| 456 | +TriggerDagRunOperator() |
424 | 457 | WorkflowTrigger() |
425 | | -FileTrigger() |
426 | | -DateTimeTrigger() |
427 | | - |
428 | | -from airflow.operators import dummy_operator |
429 | | -from airflow.operators.dummy import DummyOperator, EmptyOperator |
430 | | - |
431 | | -DummyOperator() |
432 | | -EmptyOperator() |
433 | | -dummy_operator.DummyOperator() |
434 | | -dummy_operator.EmptyOperator() |
435 | | - |
436 | | -from airflow.operators import email_operator |
437 | | -from airflow.operators.email import EmailOperator |
438 | | - |
439 | | -EmailOperator() |
440 | | -email_operator.EmailOperator() |
441 | | - |
442 | | -from airflow.operators import dagrun_operator, dummy_operator, python_operator |
443 | | -from airflow.operators.dummy import DummyOperator, EmptyOperator |
444 | | -from airflow.operators.email_operator import EmailOperator |
445 | | -from airflow.operators.python import ( |
446 | | - BranchPythonOperator, |
447 | | - PythonOperator, |
448 | | - PythonVirtualenvOperator, |
449 | | - ShortCircuitOperator, |
450 | | -) |
451 | | -from airflow.sensors.date_time_sensor import DateTimeSensor |
452 | | -from airflow.sensors.external_task import ( |
453 | | - ExternalTaskMarker, |
454 | | - ExternalTaskSensor, |
455 | | - ExternalTaskSensorLink, |
456 | | -) |
457 | | -from airflow.sensors.external_task_sensor import ( |
458 | | - ExternalTaskMarker as ExternalTaskMarkerFromExternalTaskSensor, |
459 | | -) |
460 | | -from airflow.sensors.external_task_sensor import ( |
461 | | - ExternalTaskSensor as ExternalTaskSensorFromExternalTaskSensor, |
462 | | -) |
463 | | -from airflow.sensors.external_task_sensor import ( |
464 | | - ExternalTaskSensorLink as ExternalTaskSensorLinkFromExternalTaskSensor, |
465 | | -) |
| 458 | +PythonOperator() |
| 459 | +PythonVirtualenvOperator() |
466 | 460 |
|
467 | 461 | dagrun_operator.TriggerDagRunLink() |
468 | 462 | dagrun_operator.TriggerDagRunOperator() |
469 | | - |
470 | | -# airflow.sensors.date_time_sensor |
471 | | -DateTimeSensor() |
472 | | - |
473 | | -# airflow.sensors.external_task |
474 | | -ExternalTaskSensorLink() |
475 | | -ExternalTaskMarker() |
476 | | -ExternalTaskSensor() |
477 | | - |
478 | | -# airflow.sensors.external_task_sensor |
479 | | -ExternalTaskMarkerFromExternalTaskSensor() |
480 | | -ExternalTaskSensorFromExternalTaskSensor() |
481 | | -ExternalTaskSensorLinkFromExternalTaskSensor() |
482 | | - |
483 | | -# airflow.sensors.time_delta_sensor |
484 | | -TimeDeltaSensor() |
485 | | - |
486 | | -# airflow.operators |
| 463 | +dummy_operator.DummyOperator() |
| 464 | +dummy_operator.EmptyOperator() |
| 465 | +external_task_sensor.ExternalTaskSensorLink() |
| 466 | +external_task_sensor.ExternalTaskMarker() |
| 467 | +external_task_sensor.ExternalTaskSensor() |
487 | 468 | python_operator.BranchPythonOperator() |
488 | 469 | python_operator.PythonOperator() |
489 | 470 | python_operator.PythonVirtualenvOperator() |
490 | 471 | python_operator.ShortCircuitOperator() |
491 | | -BranchPythonOperator() |
492 | | -PythonOperator() |
493 | | -PythonVirtualenvOperator() |
494 | | -ShortCircuitOperator() |
0 commit comments