Skip to content

Commit

Permalink
Added more help
Browse files Browse the repository at this point in the history
  • Loading branch information
Zav committed Feb 14, 2020
1 parent cccdf70 commit f934f91
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,14 @@ from airflow.utils.dates import days_ago
default_args = {"owner": "tester", "start_date": days_ago(2), "retries": 0}
dag = DAG("job-tester", default_args=default_args, description="Test base job operator", schedule_interval=None)

job_yaml=... # loaded from file.

job_task=KubernetesJobOperator(
task_id="test-job",
dag=dag,
image="ubuntu",
command=["bash", "-c", 'echo "all ok"'],
)

job_yaml=... # loaded from file.
job_task_from_yaml = KubernetesJobOperator(task_id="test-job-from-yaml", job_yaml=job_yaml, dag=dag)


Expand Down

0 comments on commit f934f91

Please sign in to comment.