Skip to content

[AIRFLOW-4120] Modify SchedulerJob.manage_slas to respect zero timedelta SLAs#4939

Merged
Fokko merged 12 commits intoapache:masterfrom
cooltoast:master
Mar 29, 2019
Merged

[AIRFLOW-4120] Modify SchedulerJob.manage_slas to respect zero timedelta SLAs#4939
Fokko merged 12 commits intoapache:masterfrom
cooltoast:master

Conversation

@cooltoast
Copy link
Copy Markdown
Contributor

Jira

Description

Added a simple isinstance check inside the manage_slas method of SchedulerJob, so we can differentiate between falsy values of sla and valid timedelta values like: timedelta() and timedelta(0).

Code Quality

  • Passes flake8

@cooltoast
Copy link
Copy Markdown
Contributor Author

cooltoast commented Mar 19, 2019

Weird that some of the tests failed in the pull request build, but I can't seem to restart the build.

The build succeeds on my branch.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Mar 23, 2019

Codecov Report

Merging #4939 into master will increase coverage by 0.2%.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #4939     +/-   ##
========================================
+ Coverage   75.59%   75.8%   +0.2%     
========================================
  Files         454     458      +4     
  Lines       29197   29862    +665     
========================================
+ Hits        22071   22636    +565     
- Misses       7126    7226    +100
Impacted Files Coverage Δ
airflow/jobs.py 78.83% <100%> (+1.95%) ⬆️
...w/contrib/operators/s3_to_gcs_transfer_operator.py 0% <0%> (-100%) ⬇️
.../contrib/operators/gcs_to_gcs_transfer_operator.py 0% <0%> (-100%) ⬇️
airflow/contrib/executors/kubernetes_executor.py 62.96% <0%> (-2.27%) ⬇️
airflow/configuration.py 92.17% <0%> (-2.23%) ⬇️
airflow/utils/helpers.py 82.51% <0%> (-0.36%) ⬇️
airflow/utils/db.py 90.19% <0%> (-0.19%) ⬇️
airflow/__init__.py 95.83% <0%> (-0.17%) ⬇️
airflow/utils/dag_processing.py 59.4% <0%> (-0.11%) ⬇️
airflow/logging_config.py 97.5% <0%> (-0.07%) ⬇️
... and 26 more

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 dce92a5...e9ea55f. Read the comment docs.

@Fokko
Copy link
Copy Markdown
Contributor

Fokko commented Mar 23, 2019

@cooltoast would it be possible to provide a test?

@cooltoast
Copy link
Copy Markdown
Contributor Author

@Fokko I added a couple tests, please take a look. thank you

Copy link
Copy Markdown
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @cooltoast

@Fokko Fokko merged commit f4e24e3 into apache:master Mar 29, 2019
mik-laj pushed a commit to PolideaInternal/airflow that referenced this pull request Mar 29, 2019
…lta SLAs (apache#4939)

Modify SchedulerJob.manage_slas to respect zero timedelta SLAs
ashb pushed a commit that referenced this pull request Apr 6, 2019
…lta SLAs (#4939)

Modify SchedulerJob.manage_slas to respect zero timedelta SLAs
cthenderson pushed a commit to cthenderson/apache-airflow that referenced this pull request Apr 16, 2019
…lta SLAs (apache#4939)

Modify SchedulerJob.manage_slas to respect zero timedelta SLAs
andriisoldatenko pushed a commit to andriisoldatenko/airflow that referenced this pull request Jul 26, 2019
…lta SLAs (apache#4939)

Modify SchedulerJob.manage_slas to respect zero timedelta SLAs
wmorris75 pushed a commit to modmed-external/incubator-airflow that referenced this pull request Jul 29, 2019
…lta SLAs (apache#4939)

Modify SchedulerJob.manage_slas to respect zero timedelta SLAs
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