Created
May 29, 2020 19:26
-
-
Save saumalya75/773b14d62edeb65564a4b95f129f53fc to your computer and use it in GitHub Desktop.
Custom Plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from airflow.plugins_manager import AirflowPlugin | |
from sensors.custom_s3_sensor import CustomS3Sensor | |
from operators.custom_file_load_operator import CustomFileProcessingOperator | |
# Defining the plugin class | |
class CustomPlugin(AirflowPlugin): | |
name = "custom_plugin" | |
sensors = [CustomS3Sensor] | |
operators = [CustomFileProcessingOperator] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment