-
Notifications
You must be signed in to change notification settings - Fork 16.3k
[AIRFLOW-2015] Add flag for interactive runs #2957
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
Conversation
|
Hi @yati-sagade, this PR makes sense to me. It is related to the code @bolkedebruin wrote. Wouldn't be |
|
Hey @Fokko thanks for reviewing. Indeed |
|
Hi @yati-sagade, yes that makes sense. This can also be interesting for testing an Airflow job in CI. Can you fix the flake8 tests? |
02afe27 to
530aeda
Compare
|
@Fokko Thanks, fixed mine, what is the policy on all other flake8 violations in the file (as opposed to just my patch)? Do I need a separate JIRA ticket to fix those as well, or just a PR would do? |
We capture the standard output and error streams so that they're handled by the configured logger. However, sometimes, when developing dags or Airflow code itself, it is useful to put pdb breakpoints in code triggered using an `airflow run`. Such a flow would of course require not redirecting the output and error streams to the logger. This patch enables that by adding a flag to the `airflow run` subcommand. Note that this does not require `--local`.
530aeda to
7176ae8
Compare
Codecov Report
@@ Coverage Diff @@
## master #2957 +/- ##
==========================================
+ Coverage 73.13% 73.23% +0.09%
==========================================
Files 175 175
Lines 12325 12329 +4
==========================================
+ Hits 9014 9029 +15
+ Misses 3311 3300 -11
Continue to review full report at Codecov.
|
|
Thanks @yati-sagade |
We capture the standard output and error streams so that they're handled by the configured logger. However, sometimes, when developing dags or Airflow code itself, it is useful to put pdb breakpoints in code triggered using an `airflow run`. Such a flow would of course require not redirecting the output and error streams to the logger. This patch enables that by adding a flag to the `airflow run` subcommand. Note that this does not require `--local`. Closes apache#2957 from yati-sagade/ysagade/airflow-2015
We capture the standard output and error streams so that they're handled
by the configured logger. However, sometimes, when developing dags or
Airflow code itself, it is useful to put pdb breakpoints in code
triggered using an
airflow run. Such a flow would of course requirenot redirecting the output and error streams to the logger.
This patch enables that by adding a flag to the
airflow runsubcommand. Note that this does not require
--local.Make sure you have checked all steps below.
JIRA
Description
We capture the standard output and error streams so that they're handled
by the configured logger. However, sometimes, when developing dags or
Airflow code itself, it is useful to put pdb breakpoints in code
triggered using an
airflow run. Such a flow would of course requirenot redirecting the output and error streams to the logger.
This patch enables that by adding a flag to the
airflow runsubcommand. Note that this does not require
--local.Tests
It is not entirely clear how to test this flag, or if it makes sense. I'm happy to add one if you have ideas!
Commits
My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":
Passes
git diff upstream/master -u -- "*.py" | flake8 --diff