Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AIRFLOW-4443] Document behavior of LatestOnlyOperator for externally triggered dagrun #5214

Conversation

khgitting
Copy link
Contributor

A LatestOnlyOperator task will never skip downstream tasks if run in an
externally triggered dagrun. This is probably reasonable–the software
is not making assumptions about the trigger-er's intention when creating
an unscheduled dagrun, and in that agnostic state, the default behavior
would be to not skip any tasks.

However, that rationale may not be obvious to an enduser, who may be
confused why a latest-only task in an externally triggered dagrun with
an execution_date in the past is not skipping downstream tasks.

This PR updates the docstring for the LatestOnlyOperator to clarify
the operator's behavior in this scenario.

A LatestOnlyOperator task will never skip downstream tasks if run in an
externally triggered dagrun. This is probably reasonable–the software
is not making assumptions about the trigger-er's intention when creating
an unscheduled dagrun, and in that agnostic state, the default behavior
would be to not skip any tasks.

However, that rationale may not be obvious to an enduser, who may be
confused why a latest-only task in an externally triggered dagrun with
an execution_date in the past is not skipping downstream tasks.

This commit updates the docstring for the LatestOnlyOperator to clarify
the operator's behavior in this scenario.
@codecov-io
Copy link

Codecov Report

Merging #5214 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #5214   +/-   ##
=======================================
  Coverage   78.53%   78.53%           
=======================================
  Files         469      469           
  Lines       29965    29965           
=======================================
  Hits        23534    23534           
  Misses       6431     6431
Impacted Files Coverage Δ
airflow/operators/latest_only_operator.py 90% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f70a6aa...e67ce2c. Read the comment docs.

@kaxil kaxil merged commit 56939c9 into apache:master Aug 6, 2019
ashb pushed a commit to ashb/airflow that referenced this pull request Oct 11, 2019
adityav pushed a commit to adityav/airflow that referenced this pull request Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants