forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new ExternalTaskSensor operator, other minor fixes
- Loading branch information
1 parent
1f890d0
commit 1f6f538
Showing
8 changed files
with
139 additions
and
75 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from flux.operators import ExternalTaskSensor | ||
from flux import DAG | ||
from datetime import datetime | ||
|
||
# Setting some default operator parameters | ||
default_args = { | ||
'owner': 'max', | ||
'mysql_dbid': 'local_mysql', | ||
} | ||
|
||
# Initializing a directed acyclic graph | ||
dag = DAG(dag_id='test_wf') | ||
|
||
wf_ext = ExternalTaskSensor( | ||
task_id='wf_ext', | ||
external_dag_id='example_1', external_task_id='runme_0', **default_args) | ||
dag.add_task(wf_ext) |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
from bash_operator import BashOperator | ||
from mysql_operator import MySqlOperator | ||
from base_sensor_operator import MySqlSensorOperator | ||
from base_sensor_operator import ExternalTaskSensor | ||
from dummy_operator import DummyOperator |
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
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