Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
one_jh
airflow-test-jh
Commits
2ef24643
Commit
2ef24643
authored
Jun 09, 2022
by
one_jh
Browse files
Update passfail.py
parent
721e59bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
passfail.py
View file @
2ef24643
...
...
@@ -2,6 +2,7 @@ from airflow import DAG
from
datetime
import
datetime
,
timedelta
from
airflow.contrib.operators.kubernetes_pod_operator
import
KubernetesPodOperator
from
airflow.operators.dummy_operator
import
DummyOperator
from
airflow.operators.bash
import
BashOperator
default_args
=
{
...
...
@@ -43,5 +44,17 @@ failing = KubernetesPodOperator(namespace='default',
dag
=
dag
)
passing
.
set_upstream
(
start
)
failing
.
set_upstream
(
start
)
templated_command
=
"""
kubectl get pods
"""
run_this
=
BashOperator
(
task_id
=
'bash_test'
,
bash_command
=
templated_command
,
dag
=
dag
,
)
start
>>
passing
>>
run_this
start
>>
failing
# passing.set_upstream(start)
# failing.set_upstream(start)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment